Example #1
0
        // Llenar Poliza
        public void Llenar_Poliza_Edit(long?Numero_Poliza, Bunifu.Framework.UI.BunifuDropdown Aseguradora_drop, Bunifu.Framework.UI.BunifuDropdown Tipo_poliza_drop, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Numero_Poliza_txb, Bunifu.Framework.UI.BunifuDatepicker Fecha_inicial,
                                       Bunifu.Framework.UI.BunifuDatepicker Fecha_final, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Valor_txb)
        {
            DB_Entities_OMB db        = new DB_Entities_OMB();
            Poliza          Pol_tabla = new Poliza();

            Pol_tabla = db.Poliza.Find(Numero_Poliza);

            if (Pol_tabla.Pol_Numero_Poliza == Numero_Poliza)
            {
                Aseguradora_drop.selectedIndex = Pol_tabla.Aseguradora_ID - 1;
                Aseguradora_drop.Enabled       = false;
                Tipo_poliza_drop.selectedIndex = Pol_tabla.Tipo_Poliza_ID - 1;
                Tipo_poliza_drop.Enabled       = false;
                Numero_Poliza_txb.Text         = Pol_tabla.Pol_Numero_Poliza.ToString();
                Numero_Poliza_txb.Enabled      = false;
                Fecha_inicial.Value            = Pol_tabla.Pol_Vigencia_Inicial;
                Fecha_final.Value = Pol_tabla.Pol_Vigencia_Final;
                Valor_txb.Text    = Pol_tabla.Pol_Valor_Prima.ToString();
            }
            else
            {
                MessageBox.Show("No hay datos en los registros");
            }
        }
Example #2
0
 public void Añadir_Editar_Pol(long?Numero_poliza, Bunifu.Framework.UI.BunifuDropdown Aseguradora, Bunifu.Framework.UI.BunifuDropdown Tipo_de_poliza, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_num_pol,
                               Bunifu.Framework.UI.BunifuDatepicker Fecha_inicio, Bunifu.Framework.UI.BunifuDatepicker Fecha_Final, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Valor_prima, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Documento_tom, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Documento_ben)
 {
     using (DB_Entities_OMB db = new DB_Entities_OMB())
     {
         // SI LA CEDULA ES NULA NOS INICIALIZARA LA CLASE TOMADOR
         if (Numero_poliza == null)
         {
             Pol = new Poliza();
             Pol.Pol_Numero_Poliza      = long.Parse(Txb_num_pol.Text);
             Pol.Tipo_Poliza_ID         = Tipo_de_poliza.selectedIndex + 1;
             Pol.Aseguradora_ID         = Aseguradora.selectedIndex + 1;
             Pol.Tomador_Documento      = long.Parse(Documento_tom.Text);
             Pol.Beneficiario_Documento = long.Parse(Documento_ben.Text);
             Pol.Pol_Vigencia_Inicial   = Fecha_inicio.Value;
             Pol.Pol_Vigencia_Final     = Fecha_Final.Value;
             Pol.Pol_Valor_Prima        = Decimal.Parse(Valor_prima.Text);
             Pol.Pol_Estado             = "ACTIVO";
         }
         // SI LA CEDULA ES NULA AGREGARA LOS REGISTROS
         if (Numero_poliza == null)
         {
             db.Poliza.Add(Pol);
             MessageBox.Show("Registros agregados");
         }
         else
         {
             // SI LA CEDULA NO ES NULA NOS EDITARA LOS REGISTROS
             Pol = new Poliza();
             Pol.Pol_Numero_Poliza      = long.Parse(Txb_num_pol.Text);
             Pol.Tipo_Poliza_ID         = Tipo_de_poliza.selectedIndex + 1;
             Pol.Aseguradora_ID         = Aseguradora.selectedIndex + 1;
             Pol.Tomador_Documento      = long.Parse(Documento_tom.Text);
             Pol.Beneficiario_Documento = long.Parse(Documento_ben.Text);
             Pol.Pol_Vigencia_Inicial   = Fecha_inicio.Value;
             Pol.Pol_Vigencia_Final     = Fecha_Final.Value;
             Pol.Pol_Valor_Prima        = Decimal.Parse(Valor_prima.Text);
             Pol.Pol_Estado             = "ACTIVO";
             // Si la cedula es distinto a nulo hara la edicion del registro
             if (Numero_poliza != null)
             {
                 db.Poliza.Add(Pol);
                 db.Entry(Pol).State = System.Data.Entity.EntityState.Modified;
                 MessageBox.Show("Edición de registros completada");
             }
         }
         db.SaveChanges();
     }
 }
Example #3
0
        private void btn_AramaKriteri_onItemSelected_2(object sender, EventArgs e)//ARAMA KRİTERİ SEÇİLİRKEN TÜM DEMİRBAŞLAR GÖRÜNSÜN.
        {
            panel_fiyat.Visible = false;
            panel_arama.Visible = true;
            dataGridView1.Rows.Clear();
            FillGrid(data);

            if (btn_AramaKriteri.selectedIndex == 0)//DROPDOWN DEMİRBAS ADINA GÖRE ARAMA
            {
                bt_arama      = new Bunifu.Framework.UI.BunifuTextbox();
                bt_arama.text = "";
                bt_arama.Size = new Size(185, 42);
                panel_arama.Controls.Clear();
                panel_arama.Controls.Add(bt_arama);
                bt_arama.OnTextChange += new EventHandler(DemirbasAdArama);
            }
            else if (btn_AramaKriteri.selectedIndex == 1)//DROPDOWN DEMİRBAS TURUNE GÖRE ARAMA
            {
                bt_arama      = new Bunifu.Framework.UI.BunifuTextbox();
                bt_arama.text = "";
                bt_arama.Size = new Size(185, 42);
                panel_arama.Controls.Clear();
                panel_arama.Controls.Add(bt_arama);
                bt_arama.OnTextChange += new EventHandler(DemirbasTurArama);
            }
            else if (btn_AramaKriteri.selectedIndex == 2)//DROPDOWN MAX-MİN FİYATA GÖRE ARAMA
            {
                panel_arama.Controls.Clear();
                panel_arama.Controls.Add(panel_fiyat);
                panel_fiyat.Visible       = true;
                txt_minFiyat.TextChanged += new EventHandler(FiyatArama);
                txt_maxFiyat.TextChanged += new EventHandler(FiyatArama);
            }
            else if (btn_AramaKriteri.selectedIndex == 3)//DROPDOWN ALIM TARİHİNE GÖRE ARAMA
            {
                bd_arama                 = new Bunifu.Framework.UI.BunifuDatepicker();
                bd_arama.Format          = DateTimePickerFormat.Custom;
                bd_arama.FormatCustom    = "dd-MM-yyyy";
                bd_arama.onValueChanged += new EventHandler(alimTarihArama);
                panel_arama.Controls.Clear();
                panel_arama.Controls.Add(bd_arama);
            }
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1    = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series1    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend2    = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea3 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend3    = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series3    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.ComponentModel.ComponentResourceManager            resources  = new System.ComponentModel.ComponentResourceManager(typeof(frmthongke));
     Bunifu.Framework.UI.BunifuDatepicker dt_sau;
     Bunifu.Framework.UI.BunifuDatepicker dt_dau;
     Bunifu.Framework.UI.BunifuDatepicker dt_ngay;
     this.chart1          = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.chart2          = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.rdb_soluong     = new System.Windows.Forms.RadioButton();
     this.rdb_gia         = new System.Windows.Forms.RadioButton();
     this.panel2          = new System.Windows.Forms.Panel();
     this.rdb_chonthang   = new System.Windows.Forms.RadioButton();
     this.label2          = new System.Windows.Forms.Label();
     this.rdb_chonkhoang  = new System.Windows.Forms.RadioButton();
     this.rdb_chonngay    = new System.Windows.Forms.RadioButton();
     this.chart3          = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.dataGridView1   = new System.Windows.Forms.DataGridView();
     this.btn_check       = new Bunifu.Framework.UI.BunifuThinButton2();
     this.bunifuDropdown1 = new Bunifu.Framework.UI.BunifuDropdown();
     dt_sau  = new Bunifu.Framework.UI.BunifuDatepicker();
     dt_dau  = new Bunifu.Framework.UI.BunifuDatepicker();
     dt_ngay = new Bunifu.Framework.UI.BunifuDatepicker();
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chart2)).BeginInit();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chart3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.SuspendLayout();
     //
     // chart1
     //
     this.chart1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     chartArea1.Name       = "ChartArea1";
     this.chart1.ChartAreas.Add(chartArea1);
     legend1.Name = "Legend1";
     this.chart1.Legends.Add(legend1);
     this.chart1.Location = new System.Drawing.Point(4, 152);
     this.chart1.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.chart1.Name     = "chart1";
     series1.ChartArea    = "ChartArea1";
     series1.Legend       = "Legend1";
     series1.Name         = "Salary";
     this.chart1.Series.Add(series1);
     this.chart1.Size     = new System.Drawing.Size(595, 335);
     this.chart1.TabIndex = 0;
     this.chart1.Text     = "chart1";
     //
     // chart2
     //
     this.chart2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     chartArea2.Name       = "ChartArea1";
     this.chart2.ChartAreas.Add(chartArea2);
     legend2.Name = "Legend1";
     this.chart2.Legends.Add(legend2);
     this.chart2.Location = new System.Drawing.Point(621, 152);
     this.chart2.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.chart2.Name     = "chart2";
     series2.ChartArea    = "ChartArea1";
     series2.Legend       = "Legend1";
     series2.Name         = "Salary";
     this.chart2.Series.Add(series2);
     this.chart2.Size     = new System.Drawing.Size(405, 267);
     this.chart2.TabIndex = 1;
     this.chart2.Text     = "chart2";
     //
     // rdb_soluong
     //
     this.rdb_soluong.AutoSize  = true;
     this.rdb_soluong.Font      = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.rdb_soluong.ForeColor = System.Drawing.Color.White;
     this.rdb_soluong.Location  = new System.Drawing.Point(4, 47);
     this.rdb_soluong.Margin    = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.rdb_soluong.Name      = "rdb_soluong";
     this.rdb_soluong.Size      = new System.Drawing.Size(138, 27);
     this.rdb_soluong.TabIndex  = 2;
     this.rdb_soluong.Text      = "theo số lượng";
     this.rdb_soluong.UseVisualStyleBackColor = true;
     //
     // rdb_gia
     //
     this.rdb_gia.AutoSize  = true;
     this.rdb_gia.Checked   = true;
     this.rdb_gia.Font      = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.rdb_gia.ForeColor = System.Drawing.Color.White;
     this.rdb_gia.Location  = new System.Drawing.Point(4, 5);
     this.rdb_gia.Margin    = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.rdb_gia.Name      = "rdb_gia";
     this.rdb_gia.Size      = new System.Drawing.Size(94, 27);
     this.rdb_gia.TabIndex  = 3;
     this.rdb_gia.TabStop   = true;
     this.rdb_gia.Text      = "theo giá";
     this.rdb_gia.UseVisualStyleBackColor = true;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.bunifuDropdown1);
     this.panel2.Controls.Add(dt_sau);
     this.panel2.Controls.Add(dt_dau);
     this.panel2.Controls.Add(dt_ngay);
     this.panel2.Controls.Add(this.rdb_chonthang);
     this.panel2.Controls.Add(this.label2);
     this.panel2.Controls.Add(this.rdb_chonkhoang);
     this.panel2.Controls.Add(this.rdb_chonngay);
     this.panel2.Location = new System.Drawing.Point(172, 5);
     this.panel2.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(633, 149);
     this.panel2.TabIndex = 11;
     //
     // rdb_chonthang
     //
     this.rdb_chonthang.AutoSize  = true;
     this.rdb_chonthang.Font      = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.rdb_chonthang.ForeColor = System.Drawing.Color.White;
     this.rdb_chonthang.Location  = new System.Drawing.Point(17, 100);
     this.rdb_chonthang.Margin    = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.rdb_chonthang.Name      = "rdb_chonthang";
     this.rdb_chonthang.Size      = new System.Drawing.Size(119, 27);
     this.rdb_chonthang.TabIndex  = 11;
     this.rdb_chonthang.Text      = "chọn tháng";
     this.rdb_chonthang.UseVisualStyleBackColor = true;
     //
     // label2
     //
     this.label2.AutoSize  = true;
     this.label2.Font      = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor = System.Drawing.Color.White;
     this.label2.Location  = new System.Drawing.Point(347, 55);
     this.label2.Margin    = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(39, 23);
     this.label2.TabIndex  = 10;
     this.label2.Text      = "đến";
     //
     // rdb_chonkhoang
     //
     this.rdb_chonkhoang.AutoSize  = true;
     this.rdb_chonkhoang.Font      = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.rdb_chonkhoang.ForeColor = System.Drawing.Color.White;
     this.rdb_chonkhoang.Location  = new System.Drawing.Point(17, 53);
     this.rdb_chonkhoang.Margin    = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.rdb_chonkhoang.Name      = "rdb_chonkhoang";
     this.rdb_chonkhoang.Size      = new System.Drawing.Size(132, 27);
     this.rdb_chonkhoang.TabIndex  = 7;
     this.rdb_chonkhoang.Text      = "chọn khoảng";
     this.rdb_chonkhoang.UseVisualStyleBackColor = true;
     //
     // rdb_chonngay
     //
     this.rdb_chonngay.AutoSize  = true;
     this.rdb_chonngay.Checked   = true;
     this.rdb_chonngay.Font      = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.rdb_chonngay.ForeColor = System.Drawing.Color.White;
     this.rdb_chonngay.Location  = new System.Drawing.Point(17, 4);
     this.rdb_chonngay.Margin    = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.rdb_chonngay.Name      = "rdb_chonngay";
     this.rdb_chonngay.Size      = new System.Drawing.Size(112, 27);
     this.rdb_chonngay.TabIndex  = 4;
     this.rdb_chonngay.TabStop   = true;
     this.rdb_chonngay.Text      = "chọn ngày";
     this.rdb_chonngay.UseVisualStyleBackColor = true;
     //
     // chart3
     //
     this.chart3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     chartArea3.Name       = "ChartArea1";
     this.chart3.ChartAreas.Add(chartArea3);
     legend3.Name = "Legend1";
     this.chart3.Legends.Add(legend3);
     this.chart3.Location = new System.Drawing.Point(621, 427);
     this.chart3.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.chart3.Name     = "chart3";
     series3.ChartArea    = "ChartArea1";
     series3.Legend       = "Legend1";
     series3.Name         = "Salary";
     this.chart3.Series.Add(series3);
     this.chart3.Size     = new System.Drawing.Size(405, 240);
     this.chart3.TabIndex = 12;
     this.chart3.Text     = "chart3";
     //
     // dataGridView1
     //
     this.dataGridView1.AutoSizeColumnsMode         = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
     this.dataGridView1.BackgroundColor             = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     this.dataGridView1.BorderStyle                 = System.Windows.Forms.BorderStyle.None;
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Location        = new System.Drawing.Point(232, 495);
     this.dataGridView1.Margin          = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.dataGridView1.Name            = "dataGridView1";
     this.dataGridView1.RowHeadersWidth = 51;
     this.dataGridView1.Size            = new System.Drawing.Size(367, 185);
     this.dataGridView1.TabIndex        = 13;
     //
     // btn_check
     //
     this.btn_check.ActiveBorderThickness = 1;
     this.btn_check.ActiveCornerRadius    = 35;
     this.btn_check.ActiveFillColor       = System.Drawing.Color.White;
     this.btn_check.ActiveForecolor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.ActiveLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.btn_check.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btn_check.BackgroundImage")));
     this.btn_check.ButtonText            = "Check";
     this.btn_check.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btn_check.Font                = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_check.ForeColor           = System.Drawing.Color.White;
     this.btn_check.IdleBorderThickness = 1;
     this.btn_check.IdleCornerRadius    = 35;
     this.btn_check.IdleFillColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.IdleForecolor       = System.Drawing.Color.White;
     this.btn_check.IdleLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.Location            = new System.Drawing.Point(873, 29);
     this.btn_check.Margin              = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.btn_check.Name                = "btn_check";
     this.btn_check.Size                = new System.Drawing.Size(121, 56);
     this.btn_check.TabIndex            = 59;
     this.btn_check.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // dt_sau
     //
     dt_sau.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_sau.BorderRadius = 45;
     dt_sau.Font         = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_sau.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_sau.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_sau.FormatCustom = null;
     dt_sau.Location     = new System.Drawing.Point(405, 52);
     dt_sau.Margin       = new System.Windows.Forms.Padding(5);
     dt_sau.Name         = "dt_sau";
     dt_sau.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_sau.Size         = new System.Drawing.Size(170, 40);
     dt_sau.TabIndex     = 59;
     dt_sau.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // dt_dau
     //
     dt_dau.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_dau.BorderRadius = 45;
     dt_dau.Font         = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_dau.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_dau.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_dau.FormatCustom = null;
     dt_dau.Location     = new System.Drawing.Point(158, 52);
     dt_dau.Margin       = new System.Windows.Forms.Padding(5);
     dt_dau.Name         = "dt_dau";
     dt_dau.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_dau.Size         = new System.Drawing.Size(170, 40);
     dt_dau.TabIndex     = 58;
     dt_dau.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // dt_ngay
     //
     dt_ngay.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_ngay.BorderRadius = 45;
     dt_ngay.Font         = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_ngay.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_ngay.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_ngay.FormatCustom = null;
     dt_ngay.Location     = new System.Drawing.Point(196, 0);
     dt_ngay.Margin       = new System.Windows.Forms.Padding(5);
     dt_ngay.Name         = "dt_ngay";
     dt_ngay.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_ngay.Size         = new System.Drawing.Size(170, 40);
     dt_ngay.TabIndex     = 57;
     dt_ngay.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // bunifuDropdown1
     //
     this.bunifuDropdown1.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     this.bunifuDropdown1.BorderRadius  = 45;
     this.bunifuDropdown1.ForeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.bunifuDropdown1.Items         = new string[0];
     this.bunifuDropdown1.Location      = new System.Drawing.Point(172, 96);
     this.bunifuDropdown1.Margin        = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.bunifuDropdown1.Name          = "bunifuDropdown1";
     this.bunifuDropdown1.NomalColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     this.bunifuDropdown1.onHoverColor  = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.bunifuDropdown1.selectedIndex = -1;
     this.bunifuDropdown1.Size          = new System.Drawing.Size(70, 43);
     this.bunifuDropdown1.TabIndex      = 60;
     //
     // frmthongke
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.ClientSize          = new System.Drawing.Size(1091, 706);
     this.Controls.Add(this.btn_check);
     this.Controls.Add(this.dataGridView1);
     this.Controls.Add(this.chart3);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.rdb_gia);
     this.Controls.Add(this.rdb_soluong);
     this.Controls.Add(this.chart2);
     this.Controls.Add(this.chart1);
     this.ForeColor = System.Drawing.SystemColors.ControlText;
     this.Margin    = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.Name      = "frmthongke";
     this.Text      = "frmthongke";
     this.Load     += new System.EventHandler(this.frmthongke_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chart2)).EndInit();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chart3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #5
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPago));
     this.datePay         = new Bunifu.Framework.UI.BunifuDatepicker();
     this.label3          = new System.Windows.Forms.Label();
     this.label4          = new System.Windows.Forms.Label();
     this.label5          = new System.Windows.Forms.Label();
     this.btnAddPay       = new Bunifu.Framework.UI.BunifuThinButton2();
     this.btnDeletePay    = new Bunifu.Framework.UI.BunifuThinButton2();
     this.txtboxPay       = new Bunifu.Framework.UI.BunifuMetroTextbox();
     this.txtboxBank      = new Bunifu.Framework.UI.BunifuMetroTextbox();
     this.btnEditPay      = new Bunifu.Framework.UI.BunifuThinButton2();
     this.txtboxIDBuy     = new Bunifu.Framework.UI.BunifuMetroTextbox();
     this.label2          = new System.Windows.Forms.Label();
     this.txtBoxIDPay     = new Bunifu.Framework.UI.BunifuMetroTextbox();
     this.label6          = new System.Windows.Forms.Label();
     this.btnVerRegistros = new Bunifu.Framework.UI.BunifuThinButton2();
     this.gvPayDetail     = new System.Windows.Forms.DataGridView();
     this.btnBuscar       = new Bunifu.Framework.UI.BunifuThinButton2();
     this.label7          = new System.Windows.Forms.Label();
     this.txtboxSearch    = new Bunifu.Framework.UI.BunifuMetroTextbox();
     ((System.ComponentModel.ISupportInitialize)(this.gvPayDetail)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(242, 18);
     this.label1.Size     = new System.Drawing.Size(112, 36);
     this.label1.Text     = "PAGO";
     //
     // datePay
     //
     this.datePay.BackColor    = System.Drawing.Color.SeaGreen;
     this.datePay.BorderRadius = 0;
     this.datePay.ForeColor    = System.Drawing.Color.White;
     this.datePay.Format       = System.Windows.Forms.DateTimePickerFormat.Time;
     this.datePay.FormatCustom = null;
     this.datePay.Location     = new System.Drawing.Point(140, 325);
     this.datePay.Name         = "datePay";
     this.datePay.Size         = new System.Drawing.Size(250, 36);
     this.datePay.TabIndex     = 17;
     this.datePay.Value        = new System.DateTime(2020, 7, 4, 10, 56, 28, 132);
     //
     // label3
     //
     this.label3.AutoSize  = true;
     this.label3.Font      = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.ForeColor = System.Drawing.SystemColors.GrayText;
     this.label3.Location  = new System.Drawing.Point(25, 213);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(64, 29);
     this.label3.TabIndex  = 19;
     this.label3.Text      = "Pago";
     this.label3.Click    += new System.EventHandler(this.label3_Click);
     //
     // label4
     //
     this.label4.AutoSize  = true;
     this.label4.Font      = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.ForeColor = System.Drawing.SystemColors.GrayText;
     this.label4.Location  = new System.Drawing.Point(25, 277);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(76, 29);
     this.label4.TabIndex  = 20;
     this.label4.Text      = "Banco";
     //
     // label5
     //
     this.label5.AutoSize  = true;
     this.label5.Font      = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.ForeColor = System.Drawing.SystemColors.GrayText;
     this.label5.Location  = new System.Drawing.Point(25, 332);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(72, 29);
     this.label5.TabIndex  = 21;
     this.label5.Text      = "Fecha";
     //
     // btnAddPay
     //
     this.btnAddPay.ActiveBorderThickness = 1;
     this.btnAddPay.ActiveCornerRadius    = 20;
     this.btnAddPay.ActiveFillColor       = System.Drawing.Color.SeaGreen;
     this.btnAddPay.ActiveForecolor       = System.Drawing.Color.White;
     this.btnAddPay.ActiveLineColor       = System.Drawing.Color.SeaGreen;
     this.btnAddPay.BackColor             = System.Drawing.SystemColors.Control;
     this.btnAddPay.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btnAddPay.BackgroundImage")));
     this.btnAddPay.ButtonText            = "Agregar";
     this.btnAddPay.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btnAddPay.Font                = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnAddPay.ForeColor           = System.Drawing.Color.SeaGreen;
     this.btnAddPay.IdleBorderThickness = 1;
     this.btnAddPay.IdleCornerRadius    = 20;
     this.btnAddPay.IdleFillColor       = System.Drawing.Color.White;
     this.btnAddPay.IdleForecolor       = System.Drawing.Color.SeaGreen;
     this.btnAddPay.IdleLineColor       = System.Drawing.Color.SeaGreen;
     this.btnAddPay.Location            = new System.Drawing.Point(17, 427);
     this.btnAddPay.Margin              = new System.Windows.Forms.Padding(5);
     this.btnAddPay.Name                = "btnAddPay";
     this.btnAddPay.Size                = new System.Drawing.Size(106, 41);
     this.btnAddPay.TabIndex            = 22;
     this.btnAddPay.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     this.btnAddPay.Click              += new System.EventHandler(this.btnAceptarPago_Click);
     //
     // btnDeletePay
     //
     this.btnDeletePay.ActiveBorderThickness = 1;
     this.btnDeletePay.ActiveCornerRadius    = 20;
     this.btnDeletePay.ActiveFillColor       = System.Drawing.Color.SeaGreen;
     this.btnDeletePay.ActiveForecolor       = System.Drawing.Color.White;
     this.btnDeletePay.ActiveLineColor       = System.Drawing.Color.SeaGreen;
     this.btnDeletePay.BackColor             = System.Drawing.SystemColors.Control;
     this.btnDeletePay.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btnDeletePay.BackgroundImage")));
     this.btnDeletePay.ButtonText            = "Eliminar";
     this.btnDeletePay.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btnDeletePay.Font                = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnDeletePay.ForeColor           = System.Drawing.Color.SeaGreen;
     this.btnDeletePay.IdleBorderThickness = 1;
     this.btnDeletePay.IdleCornerRadius    = 20;
     this.btnDeletePay.IdleFillColor       = System.Drawing.Color.White;
     this.btnDeletePay.IdleForecolor       = System.Drawing.Color.SeaGreen;
     this.btnDeletePay.IdleLineColor       = System.Drawing.Color.SeaGreen;
     this.btnDeletePay.Location            = new System.Drawing.Point(580, 427);
     this.btnDeletePay.Margin              = new System.Windows.Forms.Padding(5);
     this.btnDeletePay.Name                = "btnDeletePay";
     this.btnDeletePay.Size                = new System.Drawing.Size(106, 41);
     this.btnDeletePay.TabIndex            = 24;
     this.btnDeletePay.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     this.btnDeletePay.Click              += new System.EventHandler(this.btnDeletePay_Click);
     //
     // txtboxPay
     //
     this.txtboxPay.BorderColorFocused    = System.Drawing.Color.Blue;
     this.txtboxPay.BorderColorIdle       = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.txtboxPay.BorderColorMouseHover = System.Drawing.Color.Blue;
     this.txtboxPay.BorderThickness       = 3;
     this.txtboxPay.Cursor     = System.Windows.Forms.Cursors.IBeam;
     this.txtboxPay.Font       = new System.Drawing.Font("Century Gothic", 9.75F);
     this.txtboxPay.ForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.txtboxPay.isPassword = false;
     this.txtboxPay.Location   = new System.Drawing.Point(140, 206);
     this.txtboxPay.Margin     = new System.Windows.Forms.Padding(4);
     this.txtboxPay.Name       = "txtboxPay";
     this.txtboxPay.Size       = new System.Drawing.Size(250, 36);
     this.txtboxPay.TabIndex   = 25;
     this.txtboxPay.TextAlign  = System.Windows.Forms.HorizontalAlignment.Left;
     //
     // txtboxBank
     //
     this.txtboxBank.BorderColorFocused    = System.Drawing.Color.Blue;
     this.txtboxBank.BorderColorIdle       = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.txtboxBank.BorderColorMouseHover = System.Drawing.Color.Blue;
     this.txtboxBank.BorderThickness       = 3;
     this.txtboxBank.Cursor     = System.Windows.Forms.Cursors.IBeam;
     this.txtboxBank.Font       = new System.Drawing.Font("Century Gothic", 9.75F);
     this.txtboxBank.ForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.txtboxBank.isPassword = false;
     this.txtboxBank.Location   = new System.Drawing.Point(140, 270);
     this.txtboxBank.Margin     = new System.Windows.Forms.Padding(4);
     this.txtboxBank.Name       = "txtboxBank";
     this.txtboxBank.Size       = new System.Drawing.Size(250, 36);
     this.txtboxBank.TabIndex   = 26;
     this.txtboxBank.TextAlign  = System.Windows.Forms.HorizontalAlignment.Left;
     //
     // btnEditPay
     //
     this.btnEditPay.ActiveBorderThickness = 1;
     this.btnEditPay.ActiveCornerRadius    = 20;
     this.btnEditPay.ActiveFillColor       = System.Drawing.Color.SeaGreen;
     this.btnEditPay.ActiveForecolor       = System.Drawing.Color.White;
     this.btnEditPay.ActiveLineColor       = System.Drawing.Color.SeaGreen;
     this.btnEditPay.BackColor             = System.Drawing.SystemColors.Control;
     this.btnEditPay.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btnEditPay.BackgroundImage")));
     this.btnEditPay.ButtonText            = "Modificar";
     this.btnEditPay.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btnEditPay.Font                = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnEditPay.ForeColor           = System.Drawing.Color.SeaGreen;
     this.btnEditPay.IdleBorderThickness = 1;
     this.btnEditPay.IdleCornerRadius    = 20;
     this.btnEditPay.IdleFillColor       = System.Drawing.Color.White;
     this.btnEditPay.IdleForecolor       = System.Drawing.Color.SeaGreen;
     this.btnEditPay.IdleLineColor       = System.Drawing.Color.SeaGreen;
     this.btnEditPay.Location            = new System.Drawing.Point(464, 427);
     this.btnEditPay.Margin              = new System.Windows.Forms.Padding(5);
     this.btnEditPay.Name                = "btnEditPay";
     this.btnEditPay.Size                = new System.Drawing.Size(106, 41);
     this.btnEditPay.TabIndex            = 27;
     this.btnEditPay.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     this.btnEditPay.Click              += new System.EventHandler(this.btnEditPay_Click);
     //
     // txtboxIDBuy
     //
     this.txtboxIDBuy.BorderColorFocused    = System.Drawing.Color.Blue;
     this.txtboxIDBuy.BorderColorIdle       = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.txtboxIDBuy.BorderColorMouseHover = System.Drawing.Color.Blue;
     this.txtboxIDBuy.BorderThickness       = 3;
     this.txtboxIDBuy.Cursor     = System.Windows.Forms.Cursors.IBeam;
     this.txtboxIDBuy.Font       = new System.Drawing.Font("Century Gothic", 9.75F);
     this.txtboxIDBuy.ForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.txtboxIDBuy.isPassword = false;
     this.txtboxIDBuy.Location   = new System.Drawing.Point(140, 149);
     this.txtboxIDBuy.Margin     = new System.Windows.Forms.Padding(4);
     this.txtboxIDBuy.Name       = "txtboxIDBuy";
     this.txtboxIDBuy.Size       = new System.Drawing.Size(250, 36);
     this.txtboxIDBuy.TabIndex   = 29;
     this.txtboxIDBuy.TextAlign  = System.Windows.Forms.HorizontalAlignment.Left;
     //
     // label2
     //
     this.label2.AutoSize  = true;
     this.label2.Font      = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor = System.Drawing.SystemColors.GrayText;
     this.label2.Location  = new System.Drawing.Point(25, 156);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(116, 29);
     this.label2.TabIndex  = 28;
     this.label2.Text      = "ID Compra";
     //
     // txtBoxIDPay
     //
     this.txtBoxIDPay.BorderColorFocused    = System.Drawing.Color.Blue;
     this.txtBoxIDPay.BorderColorIdle       = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.txtBoxIDPay.BorderColorMouseHover = System.Drawing.Color.Blue;
     this.txtBoxIDPay.BorderThickness       = 3;
     this.txtBoxIDPay.Cursor     = System.Windows.Forms.Cursors.IBeam;
     this.txtBoxIDPay.Font       = new System.Drawing.Font("Century Gothic", 9.75F);
     this.txtBoxIDPay.ForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.txtBoxIDPay.isPassword = false;
     this.txtBoxIDPay.Location   = new System.Drawing.Point(140, 90);
     this.txtBoxIDPay.Margin     = new System.Windows.Forms.Padding(4);
     this.txtBoxIDPay.Name       = "txtBoxIDPay";
     this.txtBoxIDPay.Size       = new System.Drawing.Size(250, 36);
     this.txtBoxIDPay.TabIndex   = 31;
     this.txtBoxIDPay.TextAlign  = System.Windows.Forms.HorizontalAlignment.Left;
     //
     // label6
     //
     this.label6.AutoSize  = true;
     this.label6.Font      = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label6.ForeColor = System.Drawing.SystemColors.GrayText;
     this.label6.Location  = new System.Drawing.Point(25, 97);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(89, 29);
     this.label6.TabIndex  = 30;
     this.label6.Text      = "ID Pago";
     //
     // btnVerRegistros
     //
     this.btnVerRegistros.ActiveBorderThickness = 1;
     this.btnVerRegistros.ActiveCornerRadius    = 20;
     this.btnVerRegistros.ActiveFillColor       = System.Drawing.Color.SeaGreen;
     this.btnVerRegistros.ActiveForecolor       = System.Drawing.Color.White;
     this.btnVerRegistros.ActiveLineColor       = System.Drawing.Color.SeaGreen;
     this.btnVerRegistros.BackColor             = System.Drawing.SystemColors.Control;
     this.btnVerRegistros.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btnVerRegistros.BackgroundImage")));
     this.btnVerRegistros.ButtonText            = "Ver Registros";
     this.btnVerRegistros.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btnVerRegistros.Font                = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnVerRegistros.ForeColor           = System.Drawing.Color.SeaGreen;
     this.btnVerRegistros.IdleBorderThickness = 1;
     this.btnVerRegistros.IdleCornerRadius    = 20;
     this.btnVerRegistros.IdleFillColor       = System.Drawing.Color.White;
     this.btnVerRegistros.IdleForecolor       = System.Drawing.Color.SeaGreen;
     this.btnVerRegistros.IdleLineColor       = System.Drawing.Color.SeaGreen;
     this.btnVerRegistros.Location            = new System.Drawing.Point(140, 427);
     this.btnVerRegistros.Margin              = new System.Windows.Forms.Padding(4);
     this.btnVerRegistros.Name                = "btnVerRegistros";
     this.btnVerRegistros.Size                = new System.Drawing.Size(122, 41);
     this.btnVerRegistros.TabIndex            = 32;
     this.btnVerRegistros.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     this.btnVerRegistros.Click              += new System.EventHandler(this.btnVerRegistros_Click);
     //
     // gvPayDetail
     //
     this.gvPayDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.gvPayDetail.Location = new System.Drawing.Point(397, 90);
     this.gvPayDetail.Name     = "gvPayDetail";
     this.gvPayDetail.Size     = new System.Drawing.Size(434, 271);
     this.gvPayDetail.TabIndex = 33;
     //
     // btnBuscar
     //
     this.btnBuscar.ActiveBorderThickness = 1;
     this.btnBuscar.ActiveCornerRadius    = 20;
     this.btnBuscar.ActiveFillColor       = System.Drawing.Color.SeaGreen;
     this.btnBuscar.ActiveForecolor       = System.Drawing.Color.White;
     this.btnBuscar.ActiveLineColor       = System.Drawing.Color.SeaGreen;
     this.btnBuscar.BackColor             = System.Drawing.SystemColors.Control;
     this.btnBuscar.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btnBuscar.BackgroundImage")));
     this.btnBuscar.ButtonText            = "Buscar";
     this.btnBuscar.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btnBuscar.Font                = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnBuscar.ForeColor           = System.Drawing.Color.SeaGreen;
     this.btnBuscar.IdleBorderThickness = 1;
     this.btnBuscar.IdleCornerRadius    = 20;
     this.btnBuscar.IdleFillColor       = System.Drawing.Color.White;
     this.btnBuscar.IdleForecolor       = System.Drawing.Color.SeaGreen;
     this.btnBuscar.IdleLineColor       = System.Drawing.Color.SeaGreen;
     this.btnBuscar.Location            = new System.Drawing.Point(695, 428);
     this.btnBuscar.Margin              = new System.Windows.Forms.Padding(4);
     this.btnBuscar.Name                = "btnBuscar";
     this.btnBuscar.Size                = new System.Drawing.Size(107, 41);
     this.btnBuscar.TabIndex            = 34;
     this.btnBuscar.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     this.btnBuscar.Click              += new System.EventHandler(this.btnBuscar_Click);
     //
     // label7
     //
     this.label7.AutoSize  = true;
     this.label7.Font      = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label7.ForeColor = System.Drawing.SystemColors.GrayText;
     this.label7.Location  = new System.Drawing.Point(472, 392);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(200, 29);
     this.label7.TabIndex  = 36;
     this.label7.Text      = "Ingrese id del pago";
     //
     // txtboxSearch
     //
     this.txtboxSearch.BorderColorFocused    = System.Drawing.Color.Blue;
     this.txtboxSearch.BorderColorIdle       = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.txtboxSearch.BorderColorMouseHover = System.Drawing.Color.Blue;
     this.txtboxSearch.BorderThickness       = 3;
     this.txtboxSearch.Cursor     = System.Windows.Forms.Cursors.IBeam;
     this.txtboxSearch.Font       = new System.Drawing.Font("Century Gothic", 9.75F);
     this.txtboxSearch.ForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.txtboxSearch.isPassword = false;
     this.txtboxSearch.Location   = new System.Drawing.Point(695, 392);
     this.txtboxSearch.Margin     = new System.Windows.Forms.Padding(4);
     this.txtboxSearch.Name       = "txtboxSearch";
     this.txtboxSearch.Size       = new System.Drawing.Size(107, 29);
     this.txtboxSearch.TabIndex   = 37;
     this.txtboxSearch.TextAlign  = System.Windows.Forms.HorizontalAlignment.Left;
     //
     // frmPago
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.ClientSize          = new System.Drawing.Size(843, 482);
     this.Controls.Add(this.txtboxSearch);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.btnBuscar);
     this.Controls.Add(this.gvPayDetail);
     this.Controls.Add(this.btnVerRegistros);
     this.Controls.Add(this.txtBoxIDPay);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.txtboxIDBuy);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.btnEditPay);
     this.Controls.Add(this.txtboxBank);
     this.Controls.Add(this.txtboxPay);
     this.Controls.Add(this.btnDeletePay);
     this.Controls.Add(this.btnAddPay);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.datePay);
     this.Name  = "frmPago";
     this.Load += new System.EventHandler(this.frmPago_Load);
     this.Controls.SetChildIndex(this.datePay, 0);
     this.Controls.SetChildIndex(this.label3, 0);
     this.Controls.SetChildIndex(this.label4, 0);
     this.Controls.SetChildIndex(this.label5, 0);
     this.Controls.SetChildIndex(this.btnAddPay, 0);
     this.Controls.SetChildIndex(this.btnDeletePay, 0);
     this.Controls.SetChildIndex(this.txtboxPay, 0);
     this.Controls.SetChildIndex(this.txtboxBank, 0);
     this.Controls.SetChildIndex(this.btnEditPay, 0);
     this.Controls.SetChildIndex(this.label2, 0);
     this.Controls.SetChildIndex(this.txtboxIDBuy, 0);
     this.Controls.SetChildIndex(this.label6, 0);
     this.Controls.SetChildIndex(this.txtBoxIDPay, 0);
     this.Controls.SetChildIndex(this.btnVerRegistros, 0);
     this.Controls.SetChildIndex(this.gvPayDetail, 0);
     this.Controls.SetChildIndex(this.btnBuscar, 0);
     this.Controls.SetChildIndex(this.label7, 0);
     this.Controls.SetChildIndex(this.txtboxSearch, 0);
     ((System.ComponentModel.ISupportInitialize)(this.gvPayDetail)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #6
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Bunifu.Framework.UI.BunifuDatepicker           dt_sau;
     Bunifu.Framework.UI.BunifuDatepicker           dt_dau;
     Bunifu.Framework.UI.BunifuDatepicker           dt_ngay;
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmchiacav2));
     this.dataGridView1 = new System.Windows.Forms.DataGridView();
     this.dataGridView2 = new System.Windows.Forms.DataGridView();
     this.label1        = new System.Windows.Forms.Label();
     this.rd_khoang     = new System.Windows.Forms.RadioButton();
     this.rd_ngay       = new System.Windows.Forms.RadioButton();
     this.btn_check     = new Bunifu.Framework.UI.BunifuThinButton2();
     this.btn_themca    = new Bunifu.Framework.UI.BunifuTileButton();
     this.btn_chiadeu   = new Bunifu.Framework.UI.BunifuTileButton();
     this.btn_xoa       = new Bunifu.Framework.UI.BunifuTileButton();
     this.btn_luu       = new Bunifu.Framework.UI.BunifuThinButton2();
     this.btn_sua       = new Bunifu.Framework.UI.BunifuThinButton2();
     dt_sau             = new Bunifu.Framework.UI.BunifuDatepicker();
     dt_dau             = new Bunifu.Framework.UI.BunifuDatepicker();
     dt_ngay            = new Bunifu.Framework.UI.BunifuDatepicker();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
     this.SuspendLayout();
     //
     // dt_sau
     //
     dt_sau.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_sau.BorderRadius = 45;
     dt_sau.Font         = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_sau.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_sau.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_sau.FormatCustom = null;
     dt_sau.Location     = new System.Drawing.Point(321, 66);
     dt_sau.Margin       = new System.Windows.Forms.Padding(5);
     dt_sau.Name         = "dt_sau";
     dt_sau.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_sau.Size         = new System.Drawing.Size(115, 40);
     dt_sau.TabIndex     = 56;
     dt_sau.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // dt_dau
     //
     dt_dau.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_dau.BorderRadius = 45;
     dt_dau.Font         = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_dau.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_dau.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_dau.FormatCustom = null;
     dt_dau.Location     = new System.Drawing.Point(160, 66);
     dt_dau.Margin       = new System.Windows.Forms.Padding(5);
     dt_dau.Name         = "dt_dau";
     dt_dau.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_dau.Size         = new System.Drawing.Size(109, 40);
     dt_dau.TabIndex     = 55;
     dt_dau.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // dt_ngay
     //
     dt_ngay.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_ngay.BorderRadius = 45;
     dt_ngay.Font         = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_ngay.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_ngay.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_ngay.FormatCustom = null;
     dt_ngay.Location     = new System.Drawing.Point(160, 14);
     dt_ngay.Margin       = new System.Windows.Forms.Padding(5);
     dt_ngay.Name         = "dt_ngay";
     dt_ngay.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_ngay.Size         = new System.Drawing.Size(109, 40);
     dt_ngay.TabIndex     = 52;
     dt_ngay.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // dataGridView1
     //
     this.dataGridView1.Anchor                      = System.Windows.Forms.AnchorStyles.Left;
     this.dataGridView1.BackgroundColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.dataGridView1.BorderStyle                 = System.Windows.Forms.BorderStyle.None;
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Cursor                      = System.Windows.Forms.Cursors.Hand;
     dataGridViewCellStyle5.Alignment               = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle5.BackColor               = System.Drawing.SystemColors.HotTrack;
     dataGridViewCellStyle5.Font                    = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle5.ForeColor               = System.Drawing.Color.White;
     dataGridViewCellStyle5.SelectionBackColor      = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle5.SelectionForeColor      = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle5.WrapMode                = System.Windows.Forms.DataGridViewTriState.False;
     this.dataGridView1.DefaultCellStyle            = dataGridViewCellStyle5;
     this.dataGridView1.Location                    = new System.Drawing.Point(16, 137);
     this.dataGridView1.Margin                      = new System.Windows.Forms.Padding(4);
     this.dataGridView1.Name                                            = "dataGridView1";
     this.dataGridView1.ReadOnly                                        = true;
     dataGridViewCellStyle6.Alignment                                   = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     dataGridViewCellStyle6.BackColor                                   = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(123)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle6.Font                                        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle6.ForeColor                                   = System.Drawing.Color.White;
     dataGridViewCellStyle6.Padding                                     = new System.Windows.Forms.Padding(2);
     dataGridViewCellStyle6.SelectionBackColor                          = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle6.SelectionForeColor                          = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle6.WrapMode                                    = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridView1.RowHeadersDefaultCellStyle                      = dataGridViewCellStyle6;
     this.dataGridView1.RowHeadersWidth                                 = 51;
     this.dataGridView1.RowTemplate.DefaultCellStyle.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     this.dataGridView1.RowTemplate.DefaultCellStyle.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     this.dataGridView1.RowTemplate.DefaultCellStyle.Font               = new System.Drawing.Font("Segoe UI", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dataGridView1.RowTemplate.DefaultCellStyle.Padding            = new System.Windows.Forms.Padding(2);
     this.dataGridView1.RowTemplate.DefaultCellStyle.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.dataGridView1.RowTemplate.DefaultCellStyle.WrapMode           = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridView1.Size                                            = new System.Drawing.Size(446, 296);
     this.dataGridView1.TabIndex                                        = 36;
     //
     // dataGridView2
     //
     this.dataGridView2.Anchor                      = System.Windows.Forms.AnchorStyles.Left;
     this.dataGridView2.BackgroundColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.dataGridView2.BorderStyle                 = System.Windows.Forms.BorderStyle.None;
     this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView2.Cursor                      = System.Windows.Forms.Cursors.Hand;
     dataGridViewCellStyle7.Alignment               = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle7.BackColor               = System.Drawing.SystemColors.HotTrack;
     dataGridViewCellStyle7.Font                    = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle7.ForeColor               = System.Drawing.Color.White;
     dataGridViewCellStyle7.SelectionBackColor      = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle7.SelectionForeColor      = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle7.WrapMode                = System.Windows.Forms.DataGridViewTriState.False;
     this.dataGridView2.DefaultCellStyle            = dataGridViewCellStyle7;
     this.dataGridView2.Location                    = new System.Drawing.Point(497, 137);
     this.dataGridView2.Margin                      = new System.Windows.Forms.Padding(4);
     this.dataGridView2.Name                                            = "dataGridView2";
     this.dataGridView2.ReadOnly                                        = true;
     dataGridViewCellStyle8.Alignment                                   = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     dataGridViewCellStyle8.BackColor                                   = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(123)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle8.Font                                        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle8.ForeColor                                   = System.Drawing.Color.White;
     dataGridViewCellStyle8.Padding                                     = new System.Windows.Forms.Padding(2);
     dataGridViewCellStyle8.SelectionBackColor                          = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle8.SelectionForeColor                          = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle8.WrapMode                                    = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridView2.RowHeadersDefaultCellStyle                      = dataGridViewCellStyle8;
     this.dataGridView2.RowHeadersWidth                                 = 51;
     this.dataGridView2.RowTemplate.DefaultCellStyle.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     this.dataGridView2.RowTemplate.DefaultCellStyle.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     this.dataGridView2.RowTemplate.DefaultCellStyle.Font               = new System.Drawing.Font("Segoe UI", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dataGridView2.RowTemplate.DefaultCellStyle.Padding            = new System.Windows.Forms.Padding(2);
     this.dataGridView2.RowTemplate.DefaultCellStyle.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.dataGridView2.RowTemplate.DefaultCellStyle.WrapMode           = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridView2.Size                                            = new System.Drawing.Size(708, 387);
     this.dataGridView2.TabIndex                                        = 37;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(277, 77);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(36, 20);
     this.label1.TabIndex = 57;
     this.label1.Text     = "đến";
     //
     // rd_khoang
     //
     this.rd_khoang.AutoSize = true;
     this.rd_khoang.Location = new System.Drawing.Point(14, 79);
     this.rd_khoang.Name     = "rd_khoang";
     this.rd_khoang.Size     = new System.Drawing.Size(142, 24);
     this.rd_khoang.TabIndex = 54;
     this.rd_khoang.TabStop  = true;
     this.rd_khoang.Text     = "   Chọn khoảng";
     this.rd_khoang.UseVisualStyleBackColor = true;
     //
     // rd_ngay
     //
     this.rd_ngay.AutoSize = true;
     this.rd_ngay.Location = new System.Drawing.Point(14, 27);
     this.rd_ngay.Name     = "rd_ngay";
     this.rd_ngay.Size     = new System.Drawing.Size(124, 24);
     this.rd_ngay.TabIndex = 53;
     this.rd_ngay.TabStop  = true;
     this.rd_ngay.Text     = "   Chọn ngày";
     this.rd_ngay.UseVisualStyleBackColor = true;
     //
     // btn_check
     //
     this.btn_check.ActiveBorderThickness = 1;
     this.btn_check.ActiveCornerRadius    = 45;
     this.btn_check.ActiveFillColor       = System.Drawing.Color.White;
     this.btn_check.ActiveForecolor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.ActiveLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.btn_check.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btn_check.BackgroundImage")));
     this.btn_check.ButtonText            = "Check";
     this.btn_check.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btn_check.Font                = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_check.ForeColor           = System.Drawing.Color.White;
     this.btn_check.IdleBorderThickness = 1;
     this.btn_check.IdleCornerRadius    = 45;
     this.btn_check.IdleFillColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.IdleForecolor       = System.Drawing.Color.White;
     this.btn_check.IdleLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.Location            = new System.Drawing.Point(315, 0);
     this.btn_check.Margin              = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.btn_check.Name                = "btn_check";
     this.btn_check.Size                = new System.Drawing.Size(121, 56);
     this.btn_check.TabIndex            = 58;
     this.btn_check.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // btn_themca
     //
     this.btn_themca.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_themca.color         = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_themca.colorActive   = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.btn_themca.Cursor        = System.Windows.Forms.Cursors.Hand;
     this.btn_themca.Font          = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_themca.ForeColor     = System.Drawing.Color.White;
     this.btn_themca.Image         = ((System.Drawing.Image)(resources.GetObject("btn_themca.Image")));
     this.btn_themca.ImagePosition = 14;
     this.btn_themca.ImageZoom     = 50;
     this.btn_themca.LabelPosition = 30;
     this.btn_themca.LabelText     = "Thêm ca";
     this.btn_themca.Location      = new System.Drawing.Point(465, 14);
     this.btn_themca.Margin        = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.btn_themca.Name          = "btn_themca";
     this.btn_themca.Size          = new System.Drawing.Size(100, 99);
     this.btn_themca.TabIndex      = 59;
     //
     // btn_chiadeu
     //
     this.btn_chiadeu.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_chiadeu.color         = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_chiadeu.colorActive   = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.btn_chiadeu.Cursor        = System.Windows.Forms.Cursors.Hand;
     this.btn_chiadeu.Font          = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_chiadeu.ForeColor     = System.Drawing.Color.White;
     this.btn_chiadeu.Image         = ((System.Drawing.Image)(resources.GetObject("btn_chiadeu.Image")));
     this.btn_chiadeu.ImagePosition = 14;
     this.btn_chiadeu.ImageZoom     = 50;
     this.btn_chiadeu.LabelPosition = 30;
     this.btn_chiadeu.LabelText     = "Chia đều";
     this.btn_chiadeu.Location      = new System.Drawing.Point(583, 14);
     this.btn_chiadeu.Margin        = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.btn_chiadeu.Name          = "btn_chiadeu";
     this.btn_chiadeu.Size          = new System.Drawing.Size(100, 99);
     this.btn_chiadeu.TabIndex      = 60;
     //
     // btn_xoa
     //
     this.btn_xoa.BackColor     = System.Drawing.Color.White;
     this.btn_xoa.color         = System.Drawing.Color.White;
     this.btn_xoa.colorActive   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.btn_xoa.Cursor        = System.Windows.Forms.Cursors.Hand;
     this.btn_xoa.Font          = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_xoa.ForeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_xoa.Image         = ((System.Drawing.Image)(resources.GetObject("btn_xoa.Image")));
     this.btn_xoa.ImagePosition = 14;
     this.btn_xoa.ImageZoom     = 50;
     this.btn_xoa.LabelPosition = 0;
     this.btn_xoa.LabelText     = "";
     this.btn_xoa.Location      = new System.Drawing.Point(1095, 31);
     this.btn_xoa.Margin        = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.btn_xoa.Name          = "btn_xoa";
     this.btn_xoa.Size          = new System.Drawing.Size(72, 66);
     this.btn_xoa.TabIndex      = 61;
     //
     // btn_luu
     //
     this.btn_luu.ActiveBorderThickness = 1;
     this.btn_luu.ActiveCornerRadius    = 40;
     this.btn_luu.ActiveFillColor       = System.Drawing.Color.White;
     this.btn_luu.ActiveForecolor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_luu.ActiveLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_luu.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.btn_luu.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btn_luu.BackgroundImage")));
     this.btn_luu.ButtonText            = "Thêm";
     this.btn_luu.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btn_luu.Font                = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_luu.ForeColor           = System.Drawing.Color.White;
     this.btn_luu.IdleBorderThickness = 1;
     this.btn_luu.IdleCornerRadius    = 40;
     this.btn_luu.IdleFillColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_luu.IdleForecolor       = System.Drawing.Color.White;
     this.btn_luu.IdleLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_luu.Location            = new System.Drawing.Point(711, 17);
     this.btn_luu.Margin              = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.btn_luu.Name                = "btn_luu";
     this.btn_luu.Size                = new System.Drawing.Size(160, 60);
     this.btn_luu.TabIndex            = 76;
     this.btn_luu.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // btn_sua
     //
     this.btn_sua.ActiveBorderThickness = 1;
     this.btn_sua.ActiveCornerRadius    = 40;
     this.btn_sua.ActiveFillColor       = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.btn_sua.ActiveForecolor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_sua.ActiveLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_sua.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.btn_sua.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btn_sua.BackgroundImage")));
     this.btn_sua.ButtonText            = "Sửa";
     this.btn_sua.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btn_sua.Font                = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_sua.ForeColor           = System.Drawing.Color.White;
     this.btn_sua.IdleBorderThickness = 1;
     this.btn_sua.IdleCornerRadius    = 40;
     this.btn_sua.IdleFillColor       = System.Drawing.Color.White;
     this.btn_sua.IdleForecolor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_sua.IdleLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_sua.Location            = new System.Drawing.Point(893, 17);
     this.btn_sua.Margin              = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.btn_sua.Name                = "btn_sua";
     this.btn_sua.Size                = new System.Drawing.Size(160, 60);
     this.btn_sua.TabIndex            = 77;
     this.btn_sua.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // frmchiacav2
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.ClientSize          = new System.Drawing.Size(1232, 599);
     this.Controls.Add(this.btn_sua);
     this.Controls.Add(this.btn_luu);
     this.Controls.Add(this.btn_xoa);
     this.Controls.Add(this.btn_chiadeu);
     this.Controls.Add(this.btn_themca);
     this.Controls.Add(this.btn_check);
     this.Controls.Add(this.label1);
     this.Controls.Add(dt_sau);
     this.Controls.Add(dt_dau);
     this.Controls.Add(this.rd_khoang);
     this.Controls.Add(this.rd_ngay);
     this.Controls.Add(dt_ngay);
     this.Controls.Add(this.dataGridView2);
     this.Controls.Add(this.dataGridView1);
     this.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ForeColor = System.Drawing.Color.White;
     this.Margin    = new System.Windows.Forms.Padding(4);
     this.Name      = "frmchiacav2";
     this.Text      = "frmchiacav2";
     this.Load     += new System.EventHandler(this.frmchiacav2_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Bunifu.Framework.UI.BunifuDatepicker           dt_sau;
     Bunifu.Framework.UI.BunifuDatepicker           dt_dau;
     Bunifu.Framework.UI.BunifuDatepicker           dt_ngay;
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmdanhsachca));
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     this.panel1        = new System.Windows.Forms.Panel();
     this.btn_check     = new Bunifu.Framework.UI.BunifuThinButton2();
     this.label1        = new System.Windows.Forms.Label();
     this.rdb_all       = new System.Windows.Forms.RadioButton();
     this.rdb_ngay      = new System.Windows.Forms.RadioButton();
     this.rdb_khoang    = new System.Windows.Forms.RadioButton();
     this.dataGridView1 = new System.Windows.Forms.DataGridView();
     this.txt_search    = new WindowsFormsControlLibrary1.BunifuCustomTextbox();
     this.panel2        = new System.Windows.Forms.Panel();
     this.btn_search    = new Bunifu.Framework.UI.BunifuThinButton2();
     this.btn_capnhat   = new Bunifu.Framework.UI.BunifuTileButton();
     dt_sau             = new Bunifu.Framework.UI.BunifuDatepicker();
     dt_dau             = new Bunifu.Framework.UI.BunifuDatepicker();
     dt_ngay            = new Bunifu.Framework.UI.BunifuDatepicker();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.SuspendLayout();
     //
     // dt_sau
     //
     dt_sau.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_sau.BorderRadius = 45;
     dt_sau.Font         = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_sau.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_sau.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_sau.FormatCustom = null;
     dt_sau.Location     = new System.Drawing.Point(468, 113);
     dt_sau.Margin       = new System.Windows.Forms.Padding(6);
     dt_sau.Name         = "dt_sau";
     dt_sau.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_sau.Size         = new System.Drawing.Size(199, 44);
     dt_sau.TabIndex     = 58;
     dt_sau.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // dt_dau
     //
     dt_dau.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_dau.BorderRadius = 45;
     dt_dau.Font         = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_dau.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_dau.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_dau.FormatCustom = null;
     dt_dau.Location     = new System.Drawing.Point(194, 113);
     dt_dau.Margin       = new System.Windows.Forms.Padding(6);
     dt_dau.Name         = "dt_dau";
     dt_dau.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_dau.Size         = new System.Drawing.Size(192, 44);
     dt_dau.TabIndex     = 57;
     dt_dau.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // dt_ngay
     //
     dt_ngay.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_ngay.BorderRadius = 45;
     dt_ngay.Font         = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_ngay.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_ngay.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_ngay.FormatCustom = null;
     dt_ngay.Location     = new System.Drawing.Point(282, 57);
     dt_ngay.Margin       = new System.Windows.Forms.Padding(6);
     dt_ngay.Name         = "dt_ngay";
     dt_ngay.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_ngay.Size         = new System.Drawing.Size(278, 44);
     dt_ngay.TabIndex     = 53;
     dt_ngay.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.btn_check);
     this.panel1.Controls.Add(dt_ngay);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.rdb_all);
     this.panel1.Controls.Add(dt_sau);
     this.panel1.Controls.Add(this.rdb_ngay);
     this.panel1.Controls.Add(dt_dau);
     this.panel1.Controls.Add(this.rdb_khoang);
     this.panel1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.panel1.Location = new System.Drawing.Point(0, 2);
     this.panel1.Margin   = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(716, 178);
     this.panel1.TabIndex = 6;
     //
     // btn_check
     //
     this.btn_check.ActiveBorderThickness = 1;
     this.btn_check.ActiveCornerRadius    = 45;
     this.btn_check.ActiveFillColor       = System.Drawing.Color.White;
     this.btn_check.ActiveForecolor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.ActiveLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.btn_check.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btn_check.BackgroundImage")));
     this.btn_check.ButtonText            = "Check";
     this.btn_check.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btn_check.Font                = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_check.ForeColor           = System.Drawing.Color.White;
     this.btn_check.IdleBorderThickness = 1;
     this.btn_check.IdleCornerRadius    = 45;
     this.btn_check.IdleFillColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.IdleForecolor       = System.Drawing.Color.White;
     this.btn_check.IdleLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.Location            = new System.Drawing.Point(579, 40);
     this.btn_check.Margin              = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.btn_check.Name                = "btn_check";
     this.btn_check.Size                = new System.Drawing.Size(121, 56);
     this.btn_check.TabIndex            = 60;
     this.btn_check.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(404, 124);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(36, 20);
     this.label1.TabIndex = 59;
     this.label1.Text     = "đến";
     //
     // rdb_all
     //
     this.rdb_all.AutoSize = true;
     this.rdb_all.Location = new System.Drawing.Point(20, 26);
     this.rdb_all.Name     = "rdb_all";
     this.rdb_all.Size     = new System.Drawing.Size(64, 24);
     this.rdb_all.TabIndex = 54;
     this.rdb_all.TabStop  = true;
     this.rdb_all.Text     = "   All";
     this.rdb_all.UseVisualStyleBackColor = true;
     //
     // rdb_ngay
     //
     this.rdb_ngay.AutoSize = true;
     this.rdb_ngay.Location = new System.Drawing.Point(20, 72);
     this.rdb_ngay.Name     = "rdb_ngay";
     this.rdb_ngay.Size     = new System.Drawing.Size(124, 24);
     this.rdb_ngay.TabIndex = 55;
     this.rdb_ngay.TabStop  = true;
     this.rdb_ngay.Text     = "   Chọn ngày";
     this.rdb_ngay.UseVisualStyleBackColor = true;
     //
     // rdb_khoang
     //
     this.rdb_khoang.AutoSize = true;
     this.rdb_khoang.Location = new System.Drawing.Point(20, 124);
     this.rdb_khoang.Name     = "rdb_khoang";
     this.rdb_khoang.Size     = new System.Drawing.Size(142, 24);
     this.rdb_khoang.TabIndex = 56;
     this.rdb_khoang.TabStop  = true;
     this.rdb_khoang.Text     = "   Chọn khoảng";
     this.rdb_khoang.UseVisualStyleBackColor = true;
     //
     // dataGridView1
     //
     this.dataGridView1.Anchor                      = System.Windows.Forms.AnchorStyles.Left;
     this.dataGridView1.BackgroundColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.dataGridView1.BorderStyle                 = System.Windows.Forms.BorderStyle.None;
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Cursor                      = System.Windows.Forms.Cursors.Hand;
     dataGridViewCellStyle1.Alignment               = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle1.BackColor               = System.Drawing.SystemColors.HotTrack;
     dataGridViewCellStyle1.Font                    = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle1.ForeColor               = System.Drawing.Color.White;
     dataGridViewCellStyle1.SelectionBackColor      = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle1.SelectionForeColor      = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle1.WrapMode                = System.Windows.Forms.DataGridViewTriState.False;
     this.dataGridView1.DefaultCellStyle            = dataGridViewCellStyle1;
     this.dataGridView1.Location                    = new System.Drawing.Point(69, 260);
     this.dataGridView1.Margin                      = new System.Windows.Forms.Padding(4);
     this.dataGridView1.Name                                            = "dataGridView1";
     this.dataGridView1.ReadOnly                                        = true;
     dataGridViewCellStyle2.Alignment                                   = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     dataGridViewCellStyle2.BackColor                                   = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(123)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle2.Font                                        = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle2.ForeColor                                   = System.Drawing.Color.White;
     dataGridViewCellStyle2.Padding                                     = new System.Windows.Forms.Padding(2);
     dataGridViewCellStyle2.SelectionBackColor                          = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle2.SelectionForeColor                          = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle2.WrapMode                                    = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridView1.RowHeadersDefaultCellStyle                      = dataGridViewCellStyle2;
     this.dataGridView1.RowHeadersWidth                                 = 51;
     this.dataGridView1.RowTemplate.DefaultCellStyle.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     this.dataGridView1.RowTemplate.DefaultCellStyle.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     this.dataGridView1.RowTemplate.DefaultCellStyle.Font               = new System.Drawing.Font("Segoe UI", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dataGridView1.RowTemplate.DefaultCellStyle.Padding            = new System.Windows.Forms.Padding(2);
     this.dataGridView1.RowTemplate.DefaultCellStyle.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.dataGridView1.RowTemplate.DefaultCellStyle.WrapMode           = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridView1.Size                                            = new System.Drawing.Size(768, 379);
     this.dataGridView1.TabIndex                                        = 41;
     //
     // txt_search
     //
     this.txt_search.BackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.txt_search.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.txt_search.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txt_search.Font        = new System.Drawing.Font("Segoe UI", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txt_search.ImeMode     = System.Windows.Forms.ImeMode.NoControl;
     this.txt_search.Location    = new System.Drawing.Point(20, 190);
     this.txt_search.Name        = "txt_search";
     this.txt_search.Size        = new System.Drawing.Size(157, 31);
     this.txt_search.TabIndex    = 69;
     //
     // panel2
     //
     this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(103)))), ((int)(((byte)(103)))), ((int)(((byte)(113)))));
     this.panel2.Location  = new System.Drawing.Point(20, 223);
     this.panel2.Name      = "panel2";
     this.panel2.Size      = new System.Drawing.Size(157, 1);
     this.panel2.TabIndex  = 68;
     //
     // btn_search
     //
     this.btn_search.ActiveBorderThickness = 1;
     this.btn_search.ActiveCornerRadius    = 40;
     this.btn_search.ActiveFillColor       = System.Drawing.Color.White;
     this.btn_search.ActiveForecolor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_search.ActiveLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_search.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.btn_search.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btn_search.BackgroundImage")));
     this.btn_search.ButtonText            = "Search";
     this.btn_search.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btn_search.Font                = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_search.ForeColor           = System.Drawing.Color.White;
     this.btn_search.IdleBorderThickness = 1;
     this.btn_search.IdleCornerRadius    = 40;
     this.btn_search.IdleFillColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_search.IdleForecolor       = System.Drawing.Color.White;
     this.btn_search.IdleLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_search.Location            = new System.Drawing.Point(210, 180);
     this.btn_search.Margin              = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.btn_search.Name                = "btn_search";
     this.btn_search.Size                = new System.Drawing.Size(160, 60);
     this.btn_search.TabIndex            = 77;
     this.btn_search.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // btn_capnhat
     //
     this.btn_capnhat.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_capnhat.color         = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_capnhat.colorActive   = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.btn_capnhat.Cursor        = System.Windows.Forms.Cursors.Hand;
     this.btn_capnhat.Font          = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_capnhat.ForeColor     = System.Drawing.Color.White;
     this.btn_capnhat.Image         = ((System.Drawing.Image)(resources.GetObject("btn_capnhat.Image")));
     this.btn_capnhat.ImagePosition = 14;
     this.btn_capnhat.ImageZoom     = 50;
     this.btn_capnhat.LabelPosition = 30;
     this.btn_capnhat.LabelText     = "Cập nhật";
     this.btn_capnhat.Location      = new System.Drawing.Point(773, 42);
     this.btn_capnhat.Margin        = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.btn_capnhat.Name          = "btn_capnhat";
     this.btn_capnhat.Size          = new System.Drawing.Size(100, 99);
     this.btn_capnhat.TabIndex      = 78;
     this.btn_capnhat.Click        += new System.EventHandler(this.btn_capnhat_Click);
     //
     // frmdanhsachca
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.ClientSize          = new System.Drawing.Size(923, 731);
     this.Controls.Add(this.btn_capnhat);
     this.Controls.Add(this.btn_search);
     this.Controls.Add(this.txt_search);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.dataGridView1);
     this.Controls.Add(this.panel1);
     this.Font      = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ForeColor = System.Drawing.Color.White;
     this.Margin    = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.Name      = "frmdanhsachca";
     this.Text      = "danh sách ca";
     this.Load     += new System.EventHandler(this.frmchiaca_Load);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #8
0
 public void Añadir_Editar_Veh(long?Numero_poliza, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_num_pol, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Placa_txb,
                               Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Modelo_txb, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Fasecolda_txb,
                               Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Servicio_txb, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Clase_txb, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Marca_txb,
                               Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Valor_auto_txb, Bunifu.Framework.UI.BunifuDatepicker Fecha_soat)
 {
     // INSERTANDO O EDITANDO LA ENTIDAD VEHICULO
     using (DB_Entities_OMB db = new DB_Entities_OMB())
     {
         // SI EL NUMERO DE POLIZA ES NULA NOS INICIALIZARA LA CLASE TOMADOR
         if (Numero_poliza == null)
         {
             Veh                   = new Vehiculo();
             Veh.Veh_Placa         = Placa_txb.Text;
             Veh.Veh_Modelo        = Modelo_txb.Text;
             Veh.Veh_Fasecolda     = Int32.Parse(Fasecolda_txb.Text);
             Veh.Veh_Servicio      = Servicio_txb.Text;
             Veh.Veh_Clase         = Clase_txb.Text;
             Veh.Veh_Marca         = Marca_txb.Text;
             Veh.Veh_Valor_Auto    = Decimal.Parse(Valor_auto_txb.Text);
             Veh.Veh_Vigencia_Soat = Fecha_soat.Value;
             Veh.Veh_Soat_Estado   = "ACTIVO";
         }
         // SI LA POLIZA ES NULA AGREGARA LOS REGISTROS
         if (Numero_poliza == null)
         {
             db.Vehiculo.Add(Veh);
             MessageBox.Show("Registros agregados");
         }
         else
         {
             // SI LA POLIZA NO ES NULA NOS EDITARA LOS REGISTROS
             Veh                   = new Vehiculo();
             Veh.Veh_Placa         = Placa_txb.Text;
             Veh.Veh_Modelo        = Modelo_txb.Text;
             Veh.Veh_Fasecolda     = int.Parse(Fasecolda_txb.Text);
             Veh.Veh_Servicio      = Servicio_txb.Text;
             Veh.Veh_Clase         = Clase_txb.Text;
             Veh.Veh_Marca         = Marca_txb.Text;
             Veh.Veh_Valor_Auto    = Decimal.Parse(Valor_auto_txb.Text);
             Veh.Veh_Vigencia_Soat = Fecha_soat.Value;
             // Si la poliza es distinto a nulo hara la edicion del registro
             if (Numero_poliza != null)
             {
                 db.Vehiculo.Add(Veh);
                 db.Entry(Veh).State = System.Data.Entity.EntityState.Modified;
                 MessageBox.Show("Edición de registros completada");
             }
         }
         db.SaveChanges();
     }
     // INSERTANDO LA RELACION A LA TABLA POLIZAS VEHICULOS
     using (DB_Entities_OMB db = new DB_Entities_OMB())
     {
         // SI EL NUMERO DE POLIZA ES NULA NOS INICIALIZARA LA CLASE TOMADOR
         if (Numero_poliza == null)
         {
             long Poliza_n = long.Parse(Txb_num_pol.Text);
             Pol_veh_entity_framework Poliza_veh = new Pol_veh_entity_framework();
             Poliza   Poliza_rela = db.Poliza.FirstOrDefault(pol => pol.Pol_Numero_Poliza == Poliza_n);
             Vehiculo vehi_rela   = db.Vehiculo.FirstOrDefault(veh => veh.Veh_Placa == Placa_txb.Text);
             Poliza_veh.Poliza   = Poliza_rela;
             Poliza_veh.Vehiculo = vehi_rela;
             db.Pol_veh_entity_framework.Add(Poliza_veh);
             MessageBox.Show("Registros de la relacion agregados");
         }
         db.SaveChanges();
     }
 }
Example #9
0
 public void Añadir_Editar_Ben(long?Cedula, Bunifu.Framework.UI.BunifuDropdown Tipo_doc, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_cedula, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_nombres,
                               Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_apellidos, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_direccion,
                               Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_telefono, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_email, Bunifu.Framework.UI.BunifuDatepicker Fecha_nacimiento)
 {
     using (DB_Entities_OMB db = new DB_Entities_OMB())
     {
         // SI LA CEDULA ES NULA NOS INICIALIZARA LA CLASE TOMADOR
         if (Cedula == null)
         {
             ben = new Beneficiario();
             ben.Ben_Documento        = Convert.ToInt64(Txb_cedula.Text);
             ben.Ben_Tipo_Doc         = Tipo_doc.selectedValue.ToString();
             ben.Ben_Nombres          = Txb_nombres.Text;
             ben.Ben_Apellidos        = Txb_apellidos.Text;
             ben.Ben_Direccion        = Txb_direccion.Text;
             ben.Ben_Telefono         = Convert.ToInt64(Txb_telefono.Text);
             ben.Ben_Email            = Txb_email.Text;
             ben.Ben_Fecha_Nacimiento = Fecha_nacimiento.Value;
             ben.Fecha_Creacion       = DateTime.Now;
         }
         // SI LA CEDULA ES NULA AGREGARA LOS REGISTROS
         if (Cedula == null)
         {
             db.Beneficiario.Add(ben);
             MessageBox.Show("Registros agregados");
         }
         else
         {
             // SI LA CEDULA NO ES NULA NOS EDITARA LOS REGISTROS
             ben = new Beneficiario();
             ben.Ben_Documento        = Convert.ToInt64(Txb_cedula.Text);
             ben.Ben_Tipo_Doc         = Tipo_doc.selectedValue.ToString();
             ben.Ben_Nombres          = Txb_nombres.Text;
             ben.Ben_Apellidos        = Txb_apellidos.Text;
             ben.Ben_Direccion        = Txb_direccion.Text;
             ben.Ben_Telefono         = Convert.ToInt64(Txb_telefono.Text);
             ben.Ben_Email            = Txb_email.Text;
             ben.Ben_Fecha_Nacimiento = Fecha_nacimiento.Value;
             ben.Fecha_Creacion       = DateTime.Now;
             // Si la cedula es distinto a nulo hara la edicion del registro
             if (Cedula != null)
             {
                 db.Beneficiario.Add(ben);
                 db.Entry(ben).State = System.Data.Entity.EntityState.Modified;
                 MessageBox.Show("Edición de registros completada");
             }
         }
         db.SaveChanges();
     }
 }
Example #10
0
        // Llenar Vehiculo
        public void Llenar_Vehiculo_Edit(long?Numero_Poliza, long?Tipo_Poliza_ID, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Placa_txb, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Modelo_txb, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Fascolda_txb,
                                         Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Servicio_txb, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Clase_txb, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Marca_txb,
                                         Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Valor_txb, Bunifu.Framework.UI.BunifuDatepicker Fecha_Soat)
        {
            DB_Entities_OMB db        = new DB_Entities_OMB();
            Vehiculo        Tabla_veh = new Vehiculo();

            if (Tipo_Poliza_ID == 1)
            {
                var Placa = from veh in db.Pol_veh_entity_framework where veh.PolizaPol_Numero_Poliza == Numero_Poliza select veh.VehiculoVeh_Placa;
                if (Placa.First() != null)
                {
                    Tabla_veh = db.Vehiculo.Find(Placa.First());
                    if (Tabla_veh.Veh_Placa == Placa.First())
                    {
                        Placa_txb.Text    = Tabla_veh.Veh_Placa;
                        Placa_txb.Enabled = false;
                        Modelo_txb.Text   = Tabla_veh.Veh_Modelo;
                        Fascolda_txb.Text = Tabla_veh.Veh_Fasecolda.ToString();
                        Servicio_txb.Text = Tabla_veh.Veh_Servicio;
                        Clase_txb.Text    = Tabla_veh.Veh_Clase;
                        Marca_txb.Text    = Tabla_veh.Veh_Marca;
                        Valor_txb.Text    = Tabla_veh.Veh_Valor_Auto.ToString();
                        Fecha_Soat.Value  = Tabla_veh.Veh_Vigencia_Soat;
                    }
                    else
                    {
                        MessageBox.Show("No hay datos en los registros");
                    }
                }
            }
        }
Example #11
0
        // Llenar Formularios para editar beneficiario
        public void Llenar_Beneficiario_Edit(long?Cedula, Bunifu.Framework.UI.BunifuDropdown Tipo_doc, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_cedula, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_nombres,
                                             Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_apellidos, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_direccion,
                                             Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_telefono, Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox Txb_email, Bunifu.Framework.UI.BunifuDatepicker Fecha_nacimiento)
        {
            DB_Entities_OMB db        = new DB_Entities_OMB();
            Beneficiario    ben_tabla = new Beneficiario();

            //LOGICA ANTERIOR

            /*var Tipo_documento = from tom in db.Tomador where tom.Tom_Documento == Cedula select tom.Tom_Tip_Doc;
             * var Nombres = from tom in db.Tomador where tom.Tom_Documento == Cedula select tom.Tom_Nombres;
             * var Apellidos = from tom in db.Tomador where tom.Tom_Documento == Cedula select tom.Tom_Apellidos;
             * var Direccion = from tom in db.Tomador where tom.Tom_Documento == Cedula select tom.Tom_Direccion;
             * var Telefono = from tom in db.Tomador where tom.Tom_Documento == Cedula select tom.Tom_Telefono;
             * var Email = from tom in db.Tomador where tom.Tom_Documento == Cedula select tom.Tom_Email;
             * var Fecha_Nacimiento = from tom in db.Tomador where tom.Tom_Documento == Cedula select tom.Tom_Fecha_Nacimiento;
             */
            ben_tabla = db.Beneficiario.Find(Cedula);

            if (ben_tabla.Ben_Documento.ToString() == Cedula.ToString())
            {
                Tipo_doc.SelectedItem(ben_tabla.Ben_Tipo_Doc);
                Txb_cedula.Text        = ben_tabla.Ben_Documento.ToString();
                Txb_cedula.Enabled     = false;
                Txb_nombres.Text       = ben_tabla.Ben_Nombres.ToString();
                Txb_apellidos.Text     = ben_tabla.Ben_Apellidos.ToString();
                Txb_direccion.Text     = ben_tabla.Ben_Direccion.ToString();
                Txb_telefono.Text      = ben_tabla.Ben_Telefono.ToString();
                Txb_email.Text         = ben_tabla.Ben_Email.ToString();
                Fecha_nacimiento.Value = ben_tabla.Ben_Fecha_Nacimiento;
                // LOGICA ANTERIOR

                /*Tipo_doc.SelectedItem(Tipo_documento.First());
                 * Txb_cedula.Text = Cedula.ToString();
                 * Txb_nombres.Text = Nombres.First();
                 * Txb_apellidos.Text = Apellidos.First();
                 * Txb_direccion.Text = Direccion.First();
                 * Txb_telefono.Text = Telefono.First().ToString();
                 * Txb_email.Text = Email.First();
                 * Fecha_nacimiento.Value = Fecha_Nacimiento.First();*/
            }
            else
            {
                MessageBox.Show("No hay datos en los registros");
            }
        }
Example #12
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Bunifu.Framework.UI.BunifuDatepicker           dt_ngay;
     Bunifu.Framework.UI.BunifuDatepicker           dt_dau;
     Bunifu.Framework.UI.BunifuDatepicker           dt_sau;
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmdscanhanvien));
     this.dataGridView1 = new System.Windows.Forms.DataGridView();
     this.rdb_all       = new System.Windows.Forms.RadioButton();
     this.rdb_ngay      = new System.Windows.Forms.RadioButton();
     this.rdb_khoang    = new System.Windows.Forms.RadioButton();
     this.label1        = new System.Windows.Forms.Label();
     this.btn_check     = new Bunifu.Framework.UI.BunifuThinButton2();
     dt_ngay            = new Bunifu.Framework.UI.BunifuDatepicker();
     dt_dau             = new Bunifu.Framework.UI.BunifuDatepicker();
     dt_sau             = new Bunifu.Framework.UI.BunifuDatepicker();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.SuspendLayout();
     //
     // dt_ngay
     //
     dt_ngay.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_ngay.BorderRadius = 45;
     dt_ngay.Font         = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_ngay.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_ngay.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_ngay.FormatCustom = null;
     dt_ngay.Location     = new System.Drawing.Point(291, 64);
     dt_ngay.Margin       = new System.Windows.Forms.Padding(6);
     dt_ngay.Name         = "dt_ngay";
     dt_ngay.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_ngay.Size         = new System.Drawing.Size(278, 44);
     dt_ngay.TabIndex     = 45;
     dt_ngay.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // dt_dau
     //
     dt_dau.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_dau.BorderRadius = 45;
     dt_dau.Font         = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_dau.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_dau.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_dau.FormatCustom = null;
     dt_dau.Location     = new System.Drawing.Point(203, 120);
     dt_dau.Margin       = new System.Windows.Forms.Padding(6);
     dt_dau.Name         = "dt_dau";
     dt_dau.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_dau.Size         = new System.Drawing.Size(192, 44);
     dt_dau.TabIndex     = 49;
     dt_dau.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // dt_sau
     //
     dt_sau.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     dt_sau.BorderRadius = 45;
     dt_sau.Font         = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dt_sau.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     dt_sau.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     dt_sau.FormatCustom = null;
     dt_sau.Location     = new System.Drawing.Point(477, 120);
     dt_sau.Margin       = new System.Windows.Forms.Padding(6);
     dt_sau.Name         = "dt_sau";
     dt_sau.RightToLeft  = System.Windows.Forms.RightToLeft.Yes;
     dt_sau.Size         = new System.Drawing.Size(199, 44);
     dt_sau.TabIndex     = 50;
     dt_sau.Value        = new System.DateTime(2020, 12, 6, 18, 53, 56, 232);
     //
     // dataGridView1
     //
     this.dataGridView1.Anchor                      = System.Windows.Forms.AnchorStyles.Left;
     this.dataGridView1.BackgroundColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.dataGridView1.BorderStyle                 = System.Windows.Forms.BorderStyle.None;
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Cursor                      = System.Windows.Forms.Cursors.Hand;
     dataGridViewCellStyle1.Alignment               = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle1.BackColor               = System.Drawing.SystemColors.HotTrack;
     dataGridViewCellStyle1.Font                    = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle1.ForeColor               = System.Drawing.Color.White;
     dataGridViewCellStyle1.SelectionBackColor      = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle1.SelectionForeColor      = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle1.WrapMode                = System.Windows.Forms.DataGridViewTriState.False;
     this.dataGridView1.DefaultCellStyle            = dataGridViewCellStyle1;
     this.dataGridView1.Location                    = new System.Drawing.Point(29, 224);
     this.dataGridView1.Margin                      = new System.Windows.Forms.Padding(4);
     this.dataGridView1.Name                                            = "dataGridView1";
     this.dataGridView1.ReadOnly                                        = true;
     dataGridViewCellStyle2.Alignment                                   = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     dataGridViewCellStyle2.BackColor                                   = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(123)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle2.Font                                        = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle2.ForeColor                                   = System.Drawing.Color.White;
     dataGridViewCellStyle2.Padding                                     = new System.Windows.Forms.Padding(2);
     dataGridViewCellStyle2.SelectionBackColor                          = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle2.SelectionForeColor                          = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle2.WrapMode                                    = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridView1.RowHeadersDefaultCellStyle                      = dataGridViewCellStyle2;
     this.dataGridView1.RowHeadersWidth                                 = 51;
     this.dataGridView1.RowTemplate.DefaultCellStyle.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     this.dataGridView1.RowTemplate.DefaultCellStyle.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(56)))), ((int)(((byte)(69)))));
     this.dataGridView1.RowTemplate.DefaultCellStyle.Font               = new System.Drawing.Font("Segoe UI", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dataGridView1.RowTemplate.DefaultCellStyle.Padding            = new System.Windows.Forms.Padding(2);
     this.dataGridView1.RowTemplate.DefaultCellStyle.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.dataGridView1.RowTemplate.DefaultCellStyle.WrapMode           = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridView1.Size                                            = new System.Drawing.Size(907, 425);
     this.dataGridView1.TabIndex                                        = 40;
     //
     // rdb_all
     //
     this.rdb_all.AutoSize = true;
     this.rdb_all.Location = new System.Drawing.Point(29, 33);
     this.rdb_all.Name     = "rdb_all";
     this.rdb_all.Size     = new System.Drawing.Size(70, 29);
     this.rdb_all.TabIndex = 46;
     this.rdb_all.TabStop  = true;
     this.rdb_all.Text     = "   All";
     this.rdb_all.UseVisualStyleBackColor = true;
     //
     // rdb_ngay
     //
     this.rdb_ngay.AutoSize = true;
     this.rdb_ngay.Location = new System.Drawing.Point(29, 79);
     this.rdb_ngay.Name     = "rdb_ngay";
     this.rdb_ngay.Size     = new System.Drawing.Size(144, 29);
     this.rdb_ngay.TabIndex = 47;
     this.rdb_ngay.TabStop  = true;
     this.rdb_ngay.Text     = "   Chọn ngày";
     this.rdb_ngay.UseVisualStyleBackColor = true;
     //
     // rdb_khoang
     //
     this.rdb_khoang.AutoSize = true;
     this.rdb_khoang.Location = new System.Drawing.Point(29, 131);
     this.rdb_khoang.Name     = "rdb_khoang";
     this.rdb_khoang.Size     = new System.Drawing.Size(166, 29);
     this.rdb_khoang.TabIndex = 48;
     this.rdb_khoang.TabStop  = true;
     this.rdb_khoang.Text     = "   Chọn khoảng";
     this.rdb_khoang.UseVisualStyleBackColor = true;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(413, 131);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(45, 25);
     this.label1.TabIndex = 51;
     this.label1.Text     = "đến";
     //
     // btn_check
     //
     this.btn_check.ActiveBorderThickness = 1;
     this.btn_check.ActiveCornerRadius    = 45;
     this.btn_check.ActiveFillColor       = System.Drawing.Color.White;
     this.btn_check.ActiveForecolor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.ActiveLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.btn_check.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("btn_check.BackgroundImage")));
     this.btn_check.ButtonText            = "Check";
     this.btn_check.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btn_check.Font                = new System.Drawing.Font("Segoe UI Semibold", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btn_check.ForeColor           = System.Drawing.Color.White;
     this.btn_check.IdleBorderThickness = 1;
     this.btn_check.IdleCornerRadius    = 45;
     this.btn_check.IdleFillColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.IdleForecolor       = System.Drawing.Color.White;
     this.btn_check.IdleLineColor       = System.Drawing.Color.FromArgb(((int)(((byte)(89)))), ((int)(((byte)(121)))), ((int)(((byte)(254)))));
     this.btn_check.Location            = new System.Drawing.Point(753, 79);
     this.btn_check.Margin              = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.btn_check.Name                = "btn_check";
     this.btn_check.Size                = new System.Drawing.Size(121, 56);
     this.btn_check.TabIndex            = 52;
     this.btn_check.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // frmdscanhanvien
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(82)))));
     this.ClientSize          = new System.Drawing.Size(1071, 675);
     this.Controls.Add(this.btn_check);
     this.Controls.Add(this.label1);
     this.Controls.Add(dt_sau);
     this.Controls.Add(dt_dau);
     this.Controls.Add(this.rdb_khoang);
     this.Controls.Add(this.rdb_ngay);
     this.Controls.Add(this.rdb_all);
     this.Controls.Add(dt_ngay);
     this.Controls.Add(this.dataGridView1);
     this.Font      = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ForeColor = System.Drawing.Color.White;
     this.Margin    = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.Name      = "frmdscanhanvien";
     this.Text      = "frmdscanhanvien";
     this.Load     += new System.EventHandler(this.frmdscanhanvien_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
        /// <summary>
        /// Determines if the PR or PO date ranges are valid.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dp_DateRangeChange(object sender, EventArgs e)
        {
            Bunifu.Framework.UI.BunifuDatepicker dp = (Bunifu.Framework.UI.BunifuDatepicker)sender;
            DateTime prFromDt = new DateTime();
            DateTime prToDt   = new DateTime();
            DateTime poFromDt = new DateTime();
            DateTime poToDt   = new DateTime();

            int tag = int.Parse(dp.Tag.ToString());

            switch (tag)
            {
            case 0:
            case 1:
                if (prDateSwitch.Value == false)
                {
                    return;
                }

                prFromDt = dp_PRFromDate.Value;
                prToDt   = dp_PRToDate.Value;

                if (DateTime.Compare(prFromDt, prToDt) == 1)
                {
                    ValidPrDateRange = false;
                    MessageBox.Show("The PR date range is invalid. Please update before applying filters.", "Invalid PR Date Range", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    Filters.PrDateRangeFilterAdded = false;
                }
                else
                {
                    ValidPrDateRange = true;
                    Filters.PrDateRangeFilterAdded = true;
                }
                break;

            case 2:
            case 3:
                if (poDateSwitch.Value == false)
                {
                    return;
                }
                poFromDt = dp_POFromDate.Value;
                poToDt   = dp_POToDate.Value;

                if (DateTime.Compare(prFromDt, prToDt) == 1)
                {
                    ValidPoDateRange = false;
                    MessageBox.Show("The PO date range is invalid. Please update before applying filters.", "Invalid PO Date Range", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    Filters.PoDateRangeFilterAdded = false;
                }
                else
                {
                    ValidPoDateRange = true;
                    Filters.PoDateRangeFilterAdded = true;
                }
                break;

            default:
                break;
            }
        }