コード例 #1
0
        public static void D_GetDataFromVS(System.Windows.Forms.GroupBox fr, C1.Win.C1FlexGrid.C1FlexGrid vs)
        {
            int i = 0;

            if (vs.Row <= 0)
            {
                try
                {
                    for (i = 0; i < fr.Controls.Count; i++)
                    {
                        switch (fr.Controls[i].GetType().FullName)
                        {
                        case "C1.Win.C1Input.C1TextBox":
                            C1.Win.C1Input.C1TextBox c1txt = (C1.Win.C1Input.C1TextBox)fr.Controls[i];
                            if ((c1txt.Tag + "") != "")
                            {
                                c1txt.Value = null;
                            }
                            break;

                        case "System.Windows.Forms.TextBox":
                            if ((((System.Windows.Forms.TextBox)fr.Controls[i]).Tag + "") != "")
                            {
                                ((System.Windows.Forms.TextBox)fr.Controls[i]).Text = null;
                            }
                            break;

                        case "System.Windows.Forms.DateTimePicker":
                            System.Windows.Forms.DateTimePicker dt = (System.Windows.Forms.DateTimePicker)fr.Controls[i];
                            if (dt.Tag + "" != "")
                            {
                                dt.Text = null;
                            }
                            break;

                        case "C1.Win.C1Input.C1DateEdit":
                            C1.Win.C1Input.C1DateEdit dt1 = (C1.Win.C1Input.C1DateEdit)fr.Controls[i];
                            if (dt1.Tag + "" != "")
                            {
                                dt1.Value = null;
                            }
                            break;

                        case "System.Windows.Forms.CheckBox":
                            CheckBox chbox = (System.Windows.Forms.CheckBox)fr.Controls[i];
                            if ((chbox.Tag + "") != "")
                            {
                                chbox.Checked = false;
                            }
                            break;

                        case "System.Windows.Forms.ComboBox":
                            ComboBox cbbox = (System.Windows.Forms.ComboBox)fr.Controls[i];
                            if ((cbbox.Tag + "") != "")
                            {
                                cbbox.SelectedValue = "";
                            }
                            break;
                        }
                    }
                }
                catch (Exception)
                {
                    MessageBox.Show("Get data from VS error" + fr.Controls[i].Tag);
                }
                return;
            }
            else
            {
                string st = "";
                try
                {
                    for (i = 0; i < fr.Controls.Count; i++)
                    {
                        switch (fr.Controls[i].GetType().FullName)
                        {
                        case "C1.Win.C1Input.C1TextBox":
                            C1.Win.C1Input.C1TextBox c1txt = (C1.Win.C1Input.C1TextBox)fr.Controls[i];
                            st = "";
                            if ((c1txt.Tag + "") != "")
                            {
                                st = D_GetDataFromVS1(vs, c1txt.Tag + "");
                            }
                            if (st == "")
                            {
                                st = null;
                            }
                            c1txt.Value = st;
                            break;

                        case "System.Windows.Forms.TextBox":
                            if ((((System.Windows.Forms.TextBox)fr.Controls[i]).Tag + "") != "")
                            {
                                ((System.Windows.Forms.TextBox)fr.Controls[i]).Text = D_GetDataFromVS1(vs, ((System.Windows.Forms.TextBox)fr.Controls[i]).Tag + "");
                            }
                            break;

                        case "System.Windows.Forms.DateTimePicker":
                            System.Windows.Forms.DateTimePicker dt = (System.Windows.Forms.DateTimePicker)fr.Controls[i];
                            if (dt.Tag + "" != "")
                            {
                                st = "";
                                st = D_GetDataFromVS1(vs, dt.Tag + "");
                                if (st == "" || st == null)
                                {
                                    dt.Text = null;
                                }
                                else
                                {
                                    dt.Text = st;
                                }
                            }
                            break;

                        case "C1.Win.C1Input.C1DateEdit":
                            C1.Win.C1Input.C1DateEdit dt1 = (C1.Win.C1Input.C1DateEdit)fr.Controls[i];
                            if (dt1.Tag + "" != "")
                            {
                                st = "";
                                st = D_GetDataFromVS1(vs, dt1.Tag + "");
                                if (st == "" || st == null)
                                {
                                    dt1.Value = null;
                                }
                                else
                                {
                                    dt1.Value = DateTime.Parse(st).ToString("yyyy/MM/dd");
                                }
                            }
                            break;

                        case "System.Windows.Forms.CheckBox":
                            CheckBox chbox = (System.Windows.Forms.CheckBox)fr.Controls[i];
                            if ((chbox.Tag + "") != "")
                            {
                                chbox.Checked = ConvertStringToBoolean(D_GetDataFromVS1(vs, chbox.Tag + ""));
                            }
                            break;

                        case "System.Windows.Forms.ComboBox":
                            ComboBox cbbox = (System.Windows.Forms.ComboBox)fr.Controls[i];
                            if ((cbbox.Tag + "") != "")
                            {
                                cbbox.SelectedValue = "";
                                string st1 = D_GetDataFromVS1(vs, cbbox.Tag + "");
                                if (st1 == "")
                                {
                                    cbbox.SelectedValue = "";
                                }
                                else
                                {
                                    cbbox.SelectedValue = st1;
                                }
                            }
                            break;
                        }
                    }
                    TextBoxAndVS.D_AddNewOrEdit(fr, (T_String.IsNullTo0(vs.Rows[vs.Row].UserData + "") != 2));
                }
                catch (Exception)
                {
                    MessageBox.Show("Get data from VS error" + fr.Controls[i].Tag);
                }
            }
        }
コード例 #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.panel3    = new System.Windows.Forms.Panel();
     this.label5    = new System.Windows.Forms.Label();
     this.panel1    = new System.Windows.Forms.Panel();
     this.panel4    = new System.Windows.Forms.Panel();
     this.panel6    = new System.Windows.Forms.Panel();
     this.panel7    = new System.Windows.Forms.Panel();
     this.panel9    = new System.Windows.Forms.Panel();
     this.panel11   = new System.Windows.Forms.Panel();
     this.label9    = new System.Windows.Forms.Label();
     this.nav       = new Navigator1._0.NavigatorAuto();
     this.vs        = new C1.Win.C1FlexGrid.C1FlexGrid();
     this.panel10   = new System.Windows.Forms.Panel();
     this.panel8    = new System.Windows.Forms.Panel();
     this.cmd4      = new System.Windows.Forms.Button();
     this.txt_book2 = new C1.Win.C1Input.C1TextBox();
     this.label10   = new System.Windows.Forms.Label();
     this.label11   = new System.Windows.Forms.Label();
     this.cb2       = new System.Windows.Forms.ComboBox();
     this.cmd3      = new System.Windows.Forms.Button();
     this.label7    = new System.Windows.Forms.Label();
     this.txt_file2 = new System.Windows.Forms.TextBox();
     this.cmd_close = new System.Windows.Forms.Button();
     this.label8    = new System.Windows.Forms.Label();
     this.cmd_save  = new System.Windows.Forms.Button();
     this.txt_path2 = new System.Windows.Forms.TextBox();
     this.label13   = new System.Windows.Forms.Label();
     this.panel5    = new System.Windows.Forms.Panel();
     this.panel2    = new System.Windows.Forms.Panel();
     this.txt_book1 = new C1.Win.C1Input.C1TextBox();
     this.txt_len   = new C1.Win.C1Input.C1TextBox();
     this.cmd2      = new System.Windows.Forms.Button();
     this.label12   = new System.Windows.Forms.Label();
     this.cb1       = new System.Windows.Forms.ComboBox();
     this.cmd1      = new System.Windows.Forms.Button();
     this.label6    = new System.Windows.Forms.Label();
     this.txt_file1 = new System.Windows.Forms.TextBox();
     this.label4    = new System.Windows.Forms.Label();
     this.txt_path1 = new System.Windows.Forms.TextBox();
     this.label3    = new System.Windows.Forms.Label();
     this.label2    = new System.Windows.Forms.Label();
     this.label1    = new System.Windows.Forms.Label();
     this.f2        = new System.Windows.Forms.OpenFileDialog();
     this.f1        = new System.Windows.Forms.FolderBrowserDialog();
     this.f3        = new System.Windows.Forms.OpenFileDialog();
     this.panel3.SuspendLayout();
     this.panel1.SuspendLayout();
     this.panel4.SuspendLayout();
     this.panel6.SuspendLayout();
     this.panel7.SuspendLayout();
     this.panel9.SuspendLayout();
     this.panel11.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.vs)).BeginInit();
     this.panel8.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.txt_book2)).BeginInit();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.txt_book1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txt_len)).BeginInit();
     this.SuspendLayout();
     //
     // panel3
     //
     this.panel3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.panel3.Controls.Add(this.label5);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel3.Location = new System.Drawing.Point(0, 0);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(820, 36);
     this.panel3.TabIndex = 4;
     //
     // label5
     //
     this.label5.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.label5.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.label5.Font      = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label5.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.label5.Location  = new System.Drawing.Point(0, 0);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(820, 36);
     this.label5.TabIndex  = 11;
     this.label5.Tag       = "";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.panel4);
     this.panel1.Controls.Add(this.panel2);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 36);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(820, 628);
     this.panel1.TabIndex = 5;
     //
     // panel4
     //
     this.panel4.Controls.Add(this.panel6);
     this.panel4.Controls.Add(this.panel5);
     this.panel4.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel4.Location = new System.Drawing.Point(0, 164);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(820, 464);
     this.panel4.TabIndex = 1;
     //
     // panel6
     //
     this.panel6.Controls.Add(this.panel7);
     this.panel6.Controls.Add(this.label13);
     this.panel6.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel6.Location = new System.Drawing.Point(0, 4);
     this.panel6.Name     = "panel6";
     this.panel6.Size     = new System.Drawing.Size(820, 460);
     this.panel6.TabIndex = 1;
     //
     // panel7
     //
     this.panel7.Controls.Add(this.panel9);
     this.panel7.Controls.Add(this.panel8);
     this.panel7.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel7.Location = new System.Drawing.Point(0, 36);
     this.panel7.Name     = "panel7";
     this.panel7.Size     = new System.Drawing.Size(820, 424);
     this.panel7.TabIndex = 28;
     //
     // panel9
     //
     this.panel9.Controls.Add(this.panel11);
     this.panel9.Controls.Add(this.vs);
     this.panel9.Controls.Add(this.panel10);
     this.panel9.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel9.Location = new System.Drawing.Point(0, 168);
     this.panel9.Name     = "panel9";
     this.panel9.Size     = new System.Drawing.Size(820, 256);
     this.panel9.TabIndex = 29;
     //
     // panel11
     //
     this.panel11.Controls.Add(this.label9);
     this.panel11.Controls.Add(this.nav);
     this.panel11.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel11.Location = new System.Drawing.Point(0, 4);
     this.panel11.Name     = "panel11";
     this.panel11.Size     = new System.Drawing.Size(820, 32);
     this.panel11.TabIndex = 27;
     //
     // label9
     //
     this.label9.BackColor = System.Drawing.Color.LightSteelBlue;
     this.label9.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.label9.Font      = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label9.ForeColor = System.Drawing.Color.Blue;
     this.label9.Location  = new System.Drawing.Point(360, 0);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(460, 32);
     this.label9.TabIndex  = 28;
     this.label9.Tag       = "";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // nav
     //
     this.nav.BackColor     = System.Drawing.Color.LightSteelBlue;
     this.nav.Connection    = null;
     this.nav.ConnectionDel = null;
     this.nav.Dock          = System.Windows.Forms.DockStyle.Left;
     this.nav.Font          = new System.Drawing.Font("Tahoma", 9.75F);
     this.nav.form          = null;
     this.nav.FormName      = null;
     this.nav.Grid          = null;
     this.nav.History       = false;
     this.nav.IsNull        = true;
     this.nav.Language      = "EN";
     this.nav.Location      = new System.Drawing.Point(0, 0);
     this.nav.MSG_Exit      = false;
     this.nav.MulltiDel     = true;
     this.nav.Name          = "nav";
     this.nav.Security      = 0;
     this.nav.ShowPopupMenu = true;
     this.nav.Size          = new System.Drawing.Size(360, 32);
     this.nav.TabIndex      = 27;
     this.nav.Tag           = "";
     this.nav.ToolBar_Auto  = true;
     this.nav.UserID        = null;
     this.nav.VisibleGrid   = true;
     this.nav.Where         = null;
     //
     // vs
     //
     this.vs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                             | System.Windows.Forms.AnchorStyles.Left)
                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.vs.BorderStyle  = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
     this.vs.ColumnInfo   = "10,1,0,0,0,100,Columns:0{Width:38;}\t";
     this.vs.Font         = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.vs.KeyActionTab = C1.Win.C1FlexGrid.KeyActionEnum.MoveAcross;
     this.vs.Location     = new System.Drawing.Point(4, 40);
     this.vs.Name         = "vs";
     this.vs.Size         = new System.Drawing.Size(812, 216);
     this.vs.Styles       = ((C1.Win.C1FlexGrid.CellStyleCollection)(new C1.Win.C1FlexGrid.CellStyleCollection("")));
     this.vs.TabIndex     = 26;
     //
     // panel10
     //
     this.panel10.BackColor = System.Drawing.Color.CornflowerBlue;
     this.panel10.Dock      = System.Windows.Forms.DockStyle.Top;
     this.panel10.Location  = new System.Drawing.Point(0, 0);
     this.panel10.Name      = "panel10";
     this.panel10.Size      = new System.Drawing.Size(820, 4);
     this.panel10.TabIndex  = 24;
     //
     // panel8
     //
     this.panel8.Controls.Add(this.cmd4);
     this.panel8.Controls.Add(this.txt_book2);
     this.panel8.Controls.Add(this.label10);
     this.panel8.Controls.Add(this.label11);
     this.panel8.Controls.Add(this.cb2);
     this.panel8.Controls.Add(this.cmd3);
     this.panel8.Controls.Add(this.label7);
     this.panel8.Controls.Add(this.txt_file2);
     this.panel8.Controls.Add(this.cmd_close);
     this.panel8.Controls.Add(this.label8);
     this.panel8.Controls.Add(this.cmd_save);
     this.panel8.Controls.Add(this.txt_path2);
     this.panel8.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel8.Location = new System.Drawing.Point(0, 0);
     this.panel8.Name     = "panel8";
     this.panel8.Size     = new System.Drawing.Size(820, 168);
     this.panel8.TabIndex = 28;
     //
     // cmd4
     //
     this.cmd4.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd4.Location  = new System.Drawing.Point(568, 64);
     this.cmd4.Name      = "cmd4";
     this.cmd4.Size      = new System.Drawing.Size(28, 23);
     this.cmd4.TabIndex  = 26;
     this.cmd4.Tag       = "N";
     this.cmd4.Text      = "...";
     this.cmd4.Click    += new System.EventHandler(this.cmd4_Click);
     //
     // txt_book2
     //
     this.txt_book2.CustomFormat = "######";
     this.txt_book2.DataType     = typeof(short);
     this.txt_book2.Location     = new System.Drawing.Point(124, 92);
     this.txt_book2.MaxLength    = 100;
     this.txt_book2.Name         = "txt_book2";
     this.txt_book2.Size         = new System.Drawing.Size(176, 23);
     this.txt_book2.TabIndex     = 27;
     this.txt_book2.Tag          = null;
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(20, 40);
     this.label10.Name     = "label10";
     this.label10.TabIndex = 13;
     this.label10.Text     = "Path";
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(20, 16);
     this.label11.Name     = "label11";
     this.label11.TabIndex = 12;
     this.label11.Text     = "Type";
     //
     // cb2
     //
     this.cb2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cb2.Location      = new System.Drawing.Point(124, 8);
     this.cb2.Name          = "cb2";
     this.cb2.Size          = new System.Drawing.Size(176, 24);
     this.cb2.TabIndex      = 22;
     //
     // cmd3
     //
     this.cmd3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd3.Location  = new System.Drawing.Point(568, 36);
     this.cmd3.Name      = "cmd3";
     this.cmd3.Size      = new System.Drawing.Size(28, 23);
     this.cmd3.TabIndex  = 21;
     this.cmd3.Tag       = "N";
     this.cmd3.Text      = "...";
     this.cmd3.Click    += new System.EventHandler(this.cmd3_Click);
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(20, 96);
     this.label7.Name     = "label7";
     this.label7.TabIndex = 19;
     this.label7.Text     = "Type";
     //
     // txt_file2
     //
     this.txt_file2.Location = new System.Drawing.Point(124, 64);
     this.txt_file2.Name     = "txt_file2";
     this.txt_file2.Size     = new System.Drawing.Size(444, 23);
     this.txt_file2.TabIndex = 18;
     this.txt_file2.Text     = "";
     //
     // cmd_close
     //
     this.cmd_close.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_close.Location  = new System.Drawing.Point(340, 128);
     this.cmd_close.Name      = "cmd_close";
     this.cmd_close.Size      = new System.Drawing.Size(116, 36);
     this.cmd_close.TabIndex  = 25;
     this.cmd_close.Text      = "Close";
     this.cmd_close.Click    += new System.EventHandler(this.cmd_close_Click);
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(20, 68);
     this.label8.Name     = "label8";
     this.label8.TabIndex = 17;
     this.label8.Text     = "Type";
     //
     // cmd_save
     //
     this.cmd_save.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_save.Location  = new System.Drawing.Point(160, 128);
     this.cmd_save.Name      = "cmd_save";
     this.cmd_save.Size      = new System.Drawing.Size(116, 36);
     this.cmd_save.TabIndex  = 24;
     this.cmd_save.Text      = "Save";
     this.cmd_save.Click    += new System.EventHandler(this.cmd_save_Click);
     //
     // txt_path2
     //
     this.txt_path2.Location = new System.Drawing.Point(124, 36);
     this.txt_path2.Name     = "txt_path2";
     this.txt_path2.Size     = new System.Drawing.Size(444, 23);
     this.txt_path2.TabIndex = 14;
     this.txt_path2.Text     = "";
     //
     // label13
     //
     this.label13.BackColor = System.Drawing.Color.LightSteelBlue;
     this.label13.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label13.Font      = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label13.ForeColor = System.Drawing.Color.Blue;
     this.label13.Location  = new System.Drawing.Point(0, 0);
     this.label13.Name      = "label13";
     this.label13.Size      = new System.Drawing.Size(820, 36);
     this.label13.TabIndex  = 23;
     this.label13.Tag       = "";
     this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel5
     //
     this.panel5.BackColor = System.Drawing.Color.CornflowerBlue;
     this.panel5.Dock      = System.Windows.Forms.DockStyle.Top;
     this.panel5.Location  = new System.Drawing.Point(0, 0);
     this.panel5.Name      = "panel5";
     this.panel5.Size      = new System.Drawing.Size(820, 4);
     this.panel5.TabIndex  = 0;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.txt_book1);
     this.panel2.Controls.Add(this.txt_len);
     this.panel2.Controls.Add(this.cmd2);
     this.panel2.Controls.Add(this.label12);
     this.panel2.Controls.Add(this.cb1);
     this.panel2.Controls.Add(this.cmd1);
     this.panel2.Controls.Add(this.label6);
     this.panel2.Controls.Add(this.txt_file1);
     this.panel2.Controls.Add(this.label4);
     this.panel2.Controls.Add(this.txt_path1);
     this.panel2.Controls.Add(this.label3);
     this.panel2.Controls.Add(this.label2);
     this.panel2.Controls.Add(this.label1);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(820, 164);
     this.panel2.TabIndex = 0;
     this.panel2.Paint   += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
     //
     // txt_book1
     //
     this.txt_book1.CustomFormat = "######";
     this.txt_book1.DataType     = typeof(short);
     this.txt_book1.Location     = new System.Drawing.Point(124, 128);
     this.txt_book1.MaxLength    = 100;
     this.txt_book1.Name         = "txt_book1";
     this.txt_book1.Size         = new System.Drawing.Size(176, 23);
     this.txt_book1.TabIndex     = 15;
     this.txt_book1.Tag          = null;
     //
     // txt_len
     //
     this.txt_len.CustomFormat = "##";
     this.txt_len.DataType     = typeof(short);
     this.txt_len.Location     = new System.Drawing.Point(420, 44);
     this.txt_len.MaxLength    = 2;
     this.txt_len.Name         = "txt_len";
     this.txt_len.Size         = new System.Drawing.Size(176, 23);
     this.txt_len.TabIndex     = 14;
     this.txt_len.Tag          = null;
     //
     // cmd2
     //
     this.cmd2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd2.Location  = new System.Drawing.Point(568, 100);
     this.cmd2.Name      = "cmd2";
     this.cmd2.Size      = new System.Drawing.Size(28, 23);
     this.cmd2.TabIndex  = 13;
     this.cmd2.Tag       = "N";
     this.cmd2.Text      = "...";
     this.cmd2.Click    += new System.EventHandler(this.cmd2_Click);
     //
     // label12
     //
     this.label12.BackColor = System.Drawing.Color.LightSteelBlue;
     this.label12.Dock      = System.Windows.Forms.DockStyle.Top;
     this.label12.Font      = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label12.ForeColor = System.Drawing.Color.Blue;
     this.label12.Location  = new System.Drawing.Point(0, 0);
     this.label12.Name      = "label12";
     this.label12.Size      = new System.Drawing.Size(820, 36);
     this.label12.TabIndex  = 12;
     this.label12.Tag       = "";
     this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // cb1
     //
     this.cb1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cb1.Location      = new System.Drawing.Point(124, 44);
     this.cb1.Name          = "cb1";
     this.cb1.Size          = new System.Drawing.Size(176, 24);
     this.cb1.TabIndex      = 11;
     //
     // cmd1
     //
     this.cmd1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd1.Location  = new System.Drawing.Point(568, 72);
     this.cmd1.Name      = "cmd1";
     this.cmd1.Size      = new System.Drawing.Size(28, 23);
     this.cmd1.TabIndex  = 10;
     this.cmd1.Tag       = "N";
     this.cmd1.Text      = "...";
     this.cmd1.Click    += new System.EventHandler(this.cmd1_Click);
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(20, 136);
     this.label6.Name     = "label6";
     this.label6.TabIndex = 8;
     this.label6.Text     = "Type";
     //
     // txt_file1
     //
     this.txt_file1.Location = new System.Drawing.Point(124, 100);
     this.txt_file1.Name     = "txt_file1";
     this.txt_file1.Size     = new System.Drawing.Size(444, 23);
     this.txt_file1.TabIndex = 7;
     this.txt_file1.Text     = "";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(20, 108);
     this.label4.Name     = "label4";
     this.label4.TabIndex = 6;
     this.label4.Text     = "Type";
     //
     // txt_path1
     //
     this.txt_path1.Location = new System.Drawing.Point(124, 72);
     this.txt_path1.Name     = "txt_path1";
     this.txt_path1.Size     = new System.Drawing.Size(444, 23);
     this.txt_path1.TabIndex = 3;
     this.txt_path1.Text     = "";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(316, 52);
     this.label3.Name     = "label3";
     this.label3.TabIndex = 4;
     this.label3.Text     = "label3";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(20, 80);
     this.label2.Name     = "label2";
     this.label2.TabIndex = 2;
     this.label2.Text     = "Path";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(20, 52);
     this.label1.Name     = "label1";
     this.label1.TabIndex = 0;
     this.label1.Text     = "Type";
     //
     // frmTaCardReader
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 16);
     this.ClientSize        = new System.Drawing.Size(820, 664);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.panel3);
     this.Font  = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name  = "frmTaCardReader";
     this.Text  = "frmTaCardReader";
     this.Load += new System.EventHandler(this.frmTaCardReader_Load);
     this.panel3.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.panel6.ResumeLayout(false);
     this.panel7.ResumeLayout(false);
     this.panel9.ResumeLayout(false);
     this.panel11.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.vs)).EndInit();
     this.panel8.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.txt_book2)).EndInit();
     this.panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.txt_book1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txt_len)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #3
0
        public static void D_GetDataFromTextBox(System.Windows.Forms.GroupBox fr, C1.Win.C1FlexGrid.C1FlexGrid vs)
        {
            if (vs.Row <= 0)
            {
                return;
            }
            try
            {
                for (int i = 0; i < fr.Controls.Count; i++)
                {
                    switch (fr.Controls[i].GetType().FullName)
                    {
                    case "C1.Win.C1Input.C1DateEdit":
                        C1.Win.C1Input.C1DateEdit dt1 = (C1.Win.C1Input.C1DateEdit)fr.Controls[i];
                        if (dt1.Tag + "" != "")
                        {
                            if (dt1.Value + "" == "")
                            {
                                vs.SetData(vs.Row, dt1.Tag + "", null);
                            }
                            else
                            {
//								if (dt1.CustomFormat!="" || dt1.CustomFormat!=null)
//									vs.SetData(vs.Row,dt1.Tag+"",Set_vs(DateTime.Parse(dt1.Value+"").ToString(dt1.CustomFormat)));
//								else
                                vs.SetData(vs.Row, dt1.Tag + "", Set_vs(dt1.Value));
                            }
                        }
                        break;

                    case "C1.Win.C1Input.C1TextBox":
                        C1.Win.C1Input.C1TextBox c1txt = (C1.Win.C1Input.C1TextBox)fr.Controls[i];
                        if ((c1txt.Tag + "") != "")
                        {
                            vs.SetData(vs.Row, c1txt.Tag + "", Set_vs(c1txt.Value));
                        }
                        break;

                    case "System.Windows.Forms.TextBox":
                        TextBox txt = (System.Windows.Forms.TextBox)fr.Controls[i];
                        if ((txt.Tag + "") != "")
                        {
                            vs.SetData(vs.Row, txt.Tag + "", Set_vs(txt.Text));
                        }
                        break;

                    case "System.Windows.Forms.CheckBox":
                        CheckBox chbox = (System.Windows.Forms.CheckBox)fr.Controls[i];
                        if ((chbox.Tag + "") != "")
                        {
                            vs.SetData(vs.Row, chbox.Tag + "", Set_vs(chbox.Checked));
                        }
                        break;

                    case "System.Windows.Forms.ComboBox":
                        ComboBox cbbox = (System.Windows.Forms.ComboBox)fr.Controls[i];
                        if ((cbbox.Tag + "") != "")
                        {
                            vs.SetData(vs.Row, cbbox.Tag + "", Set_vs(cbbox.SelectedValue));
                        }
                        break;
                    }
                }
                TextBoxAndVS.D_AddNewOrEdit(fr, (T_String.IsNullTo0(vs.Rows[vs.Row].UserData + "") != 2));
            }
            catch (Exception)
            {
                MessageBox.Show("Get data from VS error");
            }
        }
コード例 #4
0
        private void MostrarGuia(string NumGuia)
        {
            #region Limpiar
            //Recorremos todos los textos y los limpiamos

            foreach (Control ctrl in this.Controls)
            {
                if (ctrl is C1.Win.C1Input.C1TextBox)
                {
                    C1.Win.C1Input.C1TextBox t = ctrl as C1.Win.C1Input.C1TextBox;
                    t.Text = "";
                }
                else if (ctrl is ToolStripContainer)
                {
                    foreach (Control c in ctrl.Controls)
                    {
                        if (c is ToolStripContentPanel)
                        {
                            foreach (Control d in c.Controls)
                            {
                                if (d is C1.Win.C1Input.C1TextBox)
                                {
                                    C1.Win.C1Input.C1TextBox t = d as C1.Win.C1Input.C1TextBox;
                                    t.Text = "";
                                }
                            }
                        }
                    }
                }
            }

            //Limpiar listas
            LstTara1.Items.Clear();
            LstTara2.Items.Clear();
            LstTara3.Items.Clear();
            LstTara4.Items.Clear();
            LstBruto1.Items.Clear();
            LstBruto2.Items.Clear();
            LstBruto3.Items.Clear();
            LstBruto4.Items.Clear();
            LstBruto5.Items.Clear();
            LstBruto6.Items.Clear();

            //label que muestra el estado
            LblEstado.Text      = "";
            LblEstado.ForeColor = Color.Blue;
            BtnAnular.Visible   = false;
            #endregion

            #region Cabecera
            CL_GuiaRemision ObjCL_GuiaRemision = new CL_GuiaRemision();
            DtCabecera    = new DataTable();
            DtDetalle     = new DataTable();
            DtDetallePeso = new DataTable();

            DtCabecera = ObjCL_GuiaRemision.GetCabeceraGuiaRemision(NumGuia);



            if (DtCabecera.Rows.Count > 0)
            {
                DtDetalle     = ObjCL_GuiaRemision.GetDetalleGuiaRemision(NumGuia, "D");
                DtDetallePeso = ObjCL_GuiaRemision.GetDetalleGuiaRemisionPeso(NumGuia);

                TxtEmpresa.Text              = AppSettings.NomEmpresa;
                LblDireccion.Text            = AppSettings.NomSede;
                TxtFechaEmision.Text         = DateTime.Now.Date.ToString();
                TxtRuc.Text                  = AppSettings.RUCEmpresa;
                TxtNumGuiaRemision.Text      = DtCabecera.Rows[0]["NumGuiaRemision"].ToString().Substring(2);
                TxtFechaInicioTraslado.Text  = DtCabecera.Rows[0]["FechaSalida"].ToString();
                TxtDomicilioPartida.Text     = DtCabecera.Rows[0]["DomicilioPartida"].ToString();
                TxtNroDomicilioPartida.Text  = DtCabecera.Rows[0]["NroDomicilioPartida"].ToString();
                TxtIntDomicilioPartida.Text  = DtCabecera.Rows[0]["InteriorDomicilioPartida"].ToString();
                TxtZonaDomicilioPartida.Text = DtCabecera.Rows[0]["ZonaDomicilioPartida"].ToString();
                TxtDisDomicilioPartida.Text  = DtCabecera.Rows[0]["DistritoDomicilioPartida"].ToString();
                TxtProvDomicilioPartida.Text = DtCabecera.Rows[0]["ProvinciaDomicilioPartida"].ToString();
                TxtDepDomicilioPartida.Text  = DtCabecera.Rows[0]["DepartamentoDomicilioPartida"].ToString();
                TxtDomicilioLlegada.Text     = DtCabecera.Rows[0]["DomicilioLlegada"].ToString();
                TxtNroDomicilioLlegada.Text  = DtCabecera.Rows[0]["NroDomicilioLlegada"].ToString();
                TxtIntDomicilioLlegada.Text  = DtCabecera.Rows[0]["IntDomicilioLlegada"].ToString();
                TxtZonaDomicilioLlegada.Text = DtCabecera.Rows[0]["ZonaDomicilioLlegada"].ToString();
                TxtDisDomicilioLlegada.Text  = DtCabecera.Rows[0]["DisDomicilioLlegada"].ToString();
                TxtProvDomicilioLlegada.Text = DtCabecera.Rows[0]["ProvDomicilioLlegada"].ToString();
                TxtDepDomicilioLlegada.Text  = DtCabecera.Rows[0]["DepDomicilioLlegada"].ToString();
                TxtDestinatario.Text         = DtCabecera.Rows[0]["Destinatario"].ToString();
                TxtRUCDestinatario.Text      = DtCabecera.Rows[0]["RUCDestinatario"].ToString();
                TxtConfVehicular.Text        = DtCabecera.Rows[0]["ConfiguracionVehicular"].ToString();
                TxtMarca.Text                = DtCabecera.Rows[0]["Marca"].ToString();
                TxtPlaca.Text                = DtCabecera.Rows[0]["Placa"].ToString();
                TxtNroConstInscripcion.Text  = DtCabecera.Rows[0]["NroConstInscripcion"].ToString();
                TxtNroLicTransaportista.Text = DtCabecera.Rows[0]["NroLicTransportista"].ToString();
                TxtNombreChofer.Text         = DtCabecera.Rows[0]["NombreChofer"].ToString();
                TxtNroJabas.Text             = DtCabecera.Rows[0]["NroJabas"].ToString();
                TxtPesador.Text              = DtCabecera.Rows[0]["Pesador"].ToString();
                TxtGalponero.Text            = DtCabecera.Rows[0]["Galponero"].ToString();

                //estado de la guia
                int EstadoID;
                EstadoID = Convert.ToInt16(DtCabecera.Rows[0]["EstadoID"]);

                if (EstadoID == 0)
                {
                    LblEstado.Text      = "PLANEADO";
                    LblEstado.ForeColor = Color.Blue;
                    BtnAnular.Visible   = true;
                }
                else if (EstadoID == 10)
                {
                    LblEstado.Text      = "ANULADO";
                    LblEstado.ForeColor = Color.Red;
                    BtnAnular.Visible   = false;
                }
                else if (EstadoID == 11)
                {
                    LblEstado.Text      = "CERRADO";
                    LblEstado.ForeColor = Color.Blue;
                    BtnAnular.Visible   = false;
                }
            }
            else
            {
                BtnAnular.Visible = false;
            }
            #endregion

            #region Detalles

            //mostrar los productos (en este caso solo uno)
            if (DtCabecera.Rows.Count > 0)
            {
                decimal Tara  = 0;
                decimal Neto  = 0;
                decimal Bruto = 0;
                int     Aves  = 0;
                TxtProducto.Text     = DtDetalle.Rows[0]["NomProducto"].ToString();
                Tara                 = Convert.ToDecimal(DtDetalle.Rows[0]["PesoTara"].ToString());
                Neto                 = Convert.ToDecimal(DtDetalle.Rows[0]["PesoNeto"].ToString());
                Bruto                = Neto + Tara;
                TxtNeto.Text         = Neto.ToString();
                TxtTara.Text         = Tara.ToString();
                TxtBruto.Text        = Bruto.ToString();
                Aves                 = Convert.ToInt16(DtDetalle.Rows[0]["CantidadEnviada"]);
                TxtAves.Text         = Aves.ToString();
                TxtPesoPromedio.Text = (Neto / Aves).ToString("#,##0.00");

                DtTara = new DataTable();
                DtTara.Columns.Add("Peso", typeof(decimal));
                DtBruto = new DataTable();
                DtBruto.Columns.Add("Peso", typeof(decimal));

                foreach (DataRow Row in DtDetallePeso.Rows)
                {
                    string  Tipo = Row["Tipo"].ToString();
                    decimal Peso = Convert.ToDecimal(Row["Peso"]);

                    if (Tipo == "T")
                    {
                        DataRow RowT = DtTara.NewRow();
                        RowT["Peso"] = Peso;
                        DtTara.Rows.Add(RowT);
                    }
                    else
                    {
                        DataRow RowB = DtBruto.NewRow();
                        RowB["Peso"] = Peso;
                        DtBruto.Rows.Add(RowB);
                    }
                }

                //llenar listas de tara
                int y = 0;
                foreach (DataRow Dr in DtTara.Rows)
                {
                    y++;
                    switch (y)
                    {
                    case 1:
                        LstTara1.Items.Add(Dr["Peso"]);
                        break;

                    case 2:
                        LstTara2.Items.Add(Dr["Peso"]);
                        break;

                    case 3:
                        LstTara3.Items.Add(Dr["Peso"]);
                        break;

                    case 4:
                        LstTara4.Items.Add(Dr["Peso"]);
                        y = 0;
                        break;
                    }
                }

                //llenar listas de peso bruto
                int j = 0;
                foreach (DataRow Dr in DtBruto.Rows)
                {
                    j++;
                    switch (j)
                    {
                    case 1:
                        LstBruto1.Items.Add(Dr["Peso"]);
                        break;

                    case 2:
                        LstBruto2.Items.Add(Dr["Peso"]);
                        break;

                    case 3:
                        LstBruto3.Items.Add(Dr["Peso"]);
                        break;

                    case 4:
                        LstBruto4.Items.Add(Dr["Peso"]);
                        break;

                    case 5:
                        LstBruto5.Items.Add(Dr["Peso"]);
                        break;

                    case 6:
                        LstBruto6.Items.Add(Dr["Peso"]);
                        j = 0;
                        break;
                    }
                }
            }
            #endregion
        }
コード例 #5
0
        private void MostrarGuia(string NumGuia)
        {
            #region limpiar
            //Recorremos todos los textos y los limpiamos

            foreach (Control ctrl in this.Controls)
            {
                if (ctrl is C1.Win.C1Input.C1TextBox)
                {
                    C1.Win.C1Input.C1TextBox t = ctrl as C1.Win.C1Input.C1TextBox;
                    t.Text = "";
                }
                else if (ctrl is ToolStripContainer)
                {
                    foreach (Control c in ctrl.Controls)
                    {
                        if (c is ToolStripContentPanel)
                        {
                            foreach (Control d in c.Controls)
                            {
                                if (d is C1.Win.C1Input.C1TextBox)
                                {
                                    C1.Win.C1Input.C1TextBox t = d as C1.Win.C1Input.C1TextBox;
                                    t.Text = "";
                                }
                            }
                        }
                    }
                }
            }

            //Limpiar listas
            LstProducto.Items.Clear();
            LstUM.Items.Clear();
            LstPeso.Items.Clear();
            LstCantidad.Items.Clear();
            #endregion

            if (DtCabecera == null)//no se le paso datos de la guia
            {
                DtCabecera = ObjCL_GuiaTransportista.GetCabeceraGuiaTransportista(NumGuia);
            }
            else if (DtCabecera.Rows.Count == 0)
            {
                DtCabecera = ObjCL_GuiaTransportista.GetCabeceraGuiaTransportista(NumGuia);
            }

            #region Cabecera
            if (DtCabecera != null && DtCabecera.Rows.Count > 0)
            {
                if (DtDetalle == null)                                     //no se le paso datos de la guia
                {
                    TipoGuia  = DtCabecera.Rows[0]["TipoGuia"].ToString(); //tipo de guia, segun eso trae los detalles (venta o interna)
                    DtDetalle = ObjCL_GuiaTransportista.GetDetalleGuiaTransportista(NumGuia, TipoGuia);
                }
                else if (DtDetalle.Rows.Count == 0)
                {
                    TipoGuia  = DtCabecera.Rows[0]["TipoGuia"].ToString();//tipo de guia, segun eso trae los detalles (venta o interna)
                    DtDetalle = ObjCL_GuiaTransportista.GetDetalleGuiaTransportista(NumGuia, TipoGuia);
                }


                TxtEmpresa.Text               = AppSettings.NomEmpresa;
                LblDireccion.Text             = "Direccion del Lugar";
                TxtFechaEmision.Text          = DateTime.Now.Date.ToString().Substring(0, 10);
                TxtRuc.Text                   = AppSettings.RUCEmpresa;
                TxtNumGuiatransporte.Text     = DtCabecera.Rows[0]["NumGuiaTransportista"].ToString().Substring(2);
                TxtFechaInicioTraslado.Text   = DtCabecera.Rows[0]["FechaSalida"].ToString().Substring(0, 10);
                TxtDomicilioPartida.Text      = DtCabecera.Rows[0]["DomicilioPartida"].ToString();
                TxtNroDomicilioPartida.Text   = DtCabecera.Rows[0]["NroDomicilioPartida"].ToString();
                TxtIntDomicilioPartida.Text   = DtCabecera.Rows[0]["IntDomicilioPartida"].ToString();
                TxtZonaDomicilioPartida.Text  = DtCabecera.Rows[0]["ZonaDomicilioPartida"].ToString();
                TxtDisDomicilioPartida.Text   = DtCabecera.Rows[0]["DisDomicilioPartida"].ToString();
                TxtProvDomicilioPartida.Text  = DtCabecera.Rows[0]["ProvDomicilioPartida"].ToString();
                TxtDepDomicilioPartida.Text   = DtCabecera.Rows[0]["DepDomicilioPartida"].ToString();
                TxtDomicilioLlegada.Text      = DtCabecera.Rows[0]["DomicilioLlegada"].ToString();
                TxtNroDomicilioLlegada.Text   = DtCabecera.Rows[0]["NroDomicilioLlegada"].ToString();
                TxtIntDomicilioLlegada.Text   = DtCabecera.Rows[0]["IntDomicilioLlegada"].ToString();
                TxtZonaDomicilioLlegada.Text  = DtCabecera.Rows[0]["ZonaDomicilioLlegada"].ToString();
                TxtDisDomicilioLlegada.Text   = DtCabecera.Rows[0]["DisDomicilioLlegada"].ToString();
                TxtProvDomicilioLlegada.Text  = DtCabecera.Rows[0]["ProvDomicilioLlegada"].ToString();
                TxtDepDomicilioLlegada.Text   = DtCabecera.Rows[0]["DepDomicilioLlegada"].ToString();
                TxtRemitente.Text             = DtCabecera.Rows[0]["Remitente"].ToString();
                TxtRUCRemitente.Text          = DtCabecera.Rows[0]["RUCRemitente"].ToString();
                TxtDireccionRemitente.Text    = DtCabecera.Rows[0]["DireccionRemitente"].ToString();
                TxtDestinatario.Text          = DtCabecera.Rows[0]["Destinatario"].ToString();
                TxtRUCDestinatario.Text       = DtCabecera.Rows[0]["RUCDestinatario"].ToString();
                TxtDireccionDestinatario.Text = DtCabecera.Rows[0]["DireccionDestinatario"].ToString();
                TxtConfVehicular.Text         = DtCabecera.Rows[0]["ConfiguracionVehicular"].ToString();
                TxtMarca.Text                 = DtCabecera.Rows[0]["Marca"].ToString();
                TxtPlaca.Text                 = DtCabecera.Rows[0]["Placa"].ToString();
                TxtCarrosa.Text               = DtCabecera.Rows[0]["Carrosa"].ToString();
                TxtNroConstInscripcion.Text   = DtCabecera.Rows[0]["NroConstInscripcion"].ToString();
                TxtNroLicTransaportista.Text  = DtCabecera.Rows[0]["NroLicTransportista"].ToString();
                TxtNombreChofer.Text          = DtCabecera.Rows[0]["NombreChofer"].ToString();

                //estado de la guia
                int EstadoID;
                EstadoID = Convert.ToInt16(DtCabecera.Rows[0]["EstadoID"]);

                if (EstadoID == 0)
                {
                    LblEstado.Text      = "PLANEADO";
                    LblEstado.ForeColor = Color.Blue;
                    BtnAnular.Visible   = true;
                }
                else if (EstadoID == 10)
                {
                    LblEstado.Text      = "ANULADO";
                    LblEstado.ForeColor = Color.Red;
                    BtnAnular.Visible   = false;
                }
                else if (EstadoID == 11)
                {
                    LblEstado.Text      = "CERRADO";
                    LblEstado.ForeColor = Color.Blue;
                    BtnAnular.Visible   = false;
                }
            }
            else
            {
                BtnAnular.Visible = false;
            }
            #endregion

            #region Detalles

            //filtrar los productos en una nueva tabla
            if (DtCabecera.Rows.Count > 0)
            {
                DataTable DtDetalleFiltrado = new DataTable();
                DtDetalleFiltrado = new BaseFunctions().SelectDistinct(DtDetalle, "ProductoID");


                foreach (DataRow Row in DtDetalleFiltrado.Rows)
                {
                    string ProductoID = Row["ProductoID"].ToString();

                    //filtrar tabla para agrupar los datos por producto
                    DataView DvDetallefiltro = new DataView(DtDetalle);
                    DvDetallefiltro.RowFilter = "ProductoID = '" + ProductoID + "'";

                    string  NomProducto;
                    string  UnidadMedidaID;
                    decimal Peso            = 0;
                    decimal CantidadEnviada = 0;
                    //decimal costo = 0;

                    ProductoID     = DvDetallefiltro[0]["ProductoID"].ToString();
                    NomProducto    = DvDetallefiltro[0]["NomProducto"].ToString();
                    UnidadMedidaID = DvDetallefiltro[0]["UnidadMedidaID"].ToString();

                    foreach (DataRowView Drv in DvDetallefiltro)
                    {
                        Peso            += Convert.ToDecimal(Drv["PesoNeto"]);
                        CantidadEnviada += Convert.ToDecimal(Drv["CantidadEnviada"]);
                    }

                    LstProducto.Items.Add(NomProducto);
                    LstUM.Items.Add(UnidadMedidaID);
                    LstPeso.Items.Add(Peso);
                    LstCantidad.Items.Add(CantidadEnviada);
                    //LstCostoMinimo.Items.Add(costo);
                }
            }
            #endregion
        }
コード例 #6
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.c1CommandDock1    = new C1.Win.C1Command.C1CommandDock();
     this.c1DockingTab1     = new C1.Win.C1Command.C1DockingTab();
     this.c1DockingTabPage1 = new C1.Win.C1Command.C1DockingTabPage();
     this.Dep       = new GP8000.UserControl.CrtTaDepartment();
     this.panel1    = new System.Windows.Forms.Panel();
     this.panel2    = new System.Windows.Forms.Panel();
     this.panel6    = new System.Windows.Forms.Panel();
     this.panel7    = new System.Windows.Forms.Panel();
     this.panel10   = new System.Windows.Forms.Panel();
     this.txt10     = new System.Windows.Forms.TextBox();
     this.txt9      = new System.Windows.Forms.TextBox();
     this.txt8      = new System.Windows.Forms.TextBox();
     this.nav1      = new Navigator1._0.NavigatorAuto();
     this.vs1       = new C1.Win.C1FlexGrid.C1FlexGrid();
     this.splitter2 = new System.Windows.Forms.Splitter();
     this.panel9    = new System.Windows.Forms.Panel();
     this.txt3      = new System.Windows.Forms.TextBox();
     this.txt2      = new System.Windows.Forms.TextBox();
     this.txt1      = new System.Windows.Forms.TextBox();
     this.nav       = new Navigator1._0.NavigatorAuto();
     this.vs        = new C1.Win.C1FlexGrid.C1FlexGrid();
     this.panel5    = new System.Windows.Forms.Panel();
     this.txt       = new C1.Win.C1Input.C1TextBox();
     this.txt_not   = new System.Windows.Forms.TextBox();
     this.label4    = new System.Windows.Forms.Label();
     this.cb        = new System.Windows.Forms.ComboBox();
     this.label1    = new System.Windows.Forms.Label();
     this.dt1       = new C1.Win.C1Input.C1DateEdit();
     this.cmd_all   = new System.Windows.Forms.Button();
     this.cmd_clear = new System.Windows.Forms.Button();
     this.cmd_ok    = new System.Windows.Forms.Button();
     this.label3    = new System.Windows.Forms.Label();
     this.label2    = new System.Windows.Forms.Label();
     this.panel3    = new System.Windows.Forms.Panel();
     this.label5    = new System.Windows.Forms.Label();
     this.panel4    = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.c1CommandDock1)).BeginInit();
     this.c1CommandDock1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1DockingTab1)).BeginInit();
     this.c1DockingTab1.SuspendLayout();
     this.c1DockingTabPage1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel6.SuspendLayout();
     this.panel7.SuspendLayout();
     this.panel10.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.vs1)).BeginInit();
     this.panel9.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.vs)).BeginInit();
     this.panel5.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.txt)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dt1)).BeginInit();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // c1CommandDock1
     //
     this.c1CommandDock1.Controls.Add(this.c1DockingTab1);
     this.c1CommandDock1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.c1CommandDock1.Id       = 1;
     this.c1CommandDock1.Location = new System.Drawing.Point(0, 0);
     this.c1CommandDock1.Name     = "c1CommandDock1";
     this.c1CommandDock1.Size     = new System.Drawing.Size(276, 676);
     //
     // c1DockingTab1
     //
     this.c1DockingTab1.Alignment   = System.Windows.Forms.TabAlignment.Bottom;
     this.c1DockingTab1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.c1DockingTab1.CanAutoHide = true;
     this.c1DockingTab1.CanMoveTabs = true;
     this.c1DockingTab1.Controls.Add(this.c1DockingTabPage1);
     this.c1DockingTab1.Location      = new System.Drawing.Point(0, 0);
     this.c1DockingTab1.Name          = "c1DockingTab1";
     this.c1DockingTab1.SelectedIndex = 0;
     this.c1DockingTab1.ShowCaption   = true;
     this.c1DockingTab1.ShowSingleTab = false;
     this.c1DockingTab1.Size          = new System.Drawing.Size(276, 676);
     this.c1DockingTab1.TabIndex      = 0;
     this.c1DockingTab1.TabSizeMode   = C1.Win.C1Command.TabSizeModeEnum.Fit;
     this.c1DockingTab1.TabStyle      = C1.Win.C1Command.TabStyleEnum.WindowsXP;
     //
     // c1DockingTabPage1
     //
     this.c1DockingTabPage1.Controls.Add(this.Dep);
     this.c1DockingTabPage1.ImageIndex = -1;
     this.c1DockingTabPage1.Location   = new System.Drawing.Point(1, 1);
     this.c1DockingTabPage1.Name       = "c1DockingTabPage1";
     this.c1DockingTabPage1.Size       = new System.Drawing.Size(271, 674);
     this.c1DockingTabPage1.TabIndex   = 0;
     this.c1DockingTabPage1.Text       = "Page1";
     //
     // Dep
     //
     this.Dep.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.Dep.Font     = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Dep.Location = new System.Drawing.Point(0, 20);
     this.Dep.Name     = "Dep";
     this.Dep.Size     = new System.Drawing.Size(271, 654);
     this.Dep.TabIndex = 1;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.panel2);
     this.panel1.Controls.Add(this.panel3);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(276, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(748, 676);
     this.panel1.TabIndex = 3;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.panel6);
     this.panel2.Controls.Add(this.panel5);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Location = new System.Drawing.Point(0, 36);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(748, 640);
     this.panel2.TabIndex = 5;
     //
     // panel6
     //
     this.panel6.Controls.Add(this.panel7);
     this.panel6.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel6.Font     = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.panel6.Location = new System.Drawing.Point(0, 124);
     this.panel6.Name     = "panel6";
     this.panel6.Size     = new System.Drawing.Size(748, 516);
     this.panel6.TabIndex = 1;
     //
     // panel7
     //
     this.panel7.Controls.Add(this.panel10);
     this.panel7.Controls.Add(this.splitter2);
     this.panel7.Controls.Add(this.panel9);
     this.panel7.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel7.Font     = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.panel7.Location = new System.Drawing.Point(0, 0);
     this.panel7.Name     = "panel7";
     this.panel7.Size     = new System.Drawing.Size(748, 516);
     this.panel7.TabIndex = 0;
     //
     // panel10
     //
     this.panel10.Controls.Add(this.txt10);
     this.panel10.Controls.Add(this.txt9);
     this.panel10.Controls.Add(this.txt8);
     this.panel10.Controls.Add(this.nav1);
     this.panel10.Controls.Add(this.vs1);
     this.panel10.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel10.Location = new System.Drawing.Point(375, 0);
     this.panel10.Name     = "panel10";
     this.panel10.Size     = new System.Drawing.Size(373, 516);
     this.panel10.TabIndex = 2;
     //
     // txt10
     //
     this.txt10.BackColor = System.Drawing.Color.LemonChiffon;
     this.txt10.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txt10.Location  = new System.Drawing.Point(236, 4);
     this.txt10.MaxLength = 20;
     this.txt10.Name      = "txt10";
     this.txt10.Size      = new System.Drawing.Size(132, 23);
     this.txt10.TabIndex  = 39;
     this.txt10.Tag       = "EMP_NM";
     this.txt10.Text      = "textBox3";
     this.txt10.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.txt8_KeyDown);
     this.txt10.Leave    += new System.EventHandler(this.textBox1_Leave);
     this.txt10.Enter    += new System.EventHandler(this.textBox1_Enter);
     //
     // txt9
     //
     this.txt9.BackColor = System.Drawing.Color.LemonChiffon;
     this.txt9.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txt9.Location  = new System.Drawing.Point(120, 4);
     this.txt9.MaxLength = 20;
     this.txt9.Name      = "txt9";
     this.txt9.Size      = new System.Drawing.Size(112, 23);
     this.txt9.TabIndex  = 38;
     this.txt9.Tag       = "EMP_I1";
     this.txt9.Text      = "textBox3";
     this.txt9.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.txt8_KeyDown);
     this.txt9.Leave    += new System.EventHandler(this.textBox1_Leave);
     this.txt9.Enter    += new System.EventHandler(this.textBox1_Enter);
     //
     // txt8
     //
     this.txt8.BackColor = System.Drawing.Color.LemonChiffon;
     this.txt8.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txt8.Location  = new System.Drawing.Point(4, 4);
     this.txt8.MaxLength = 20;
     this.txt8.Name      = "txt8";
     this.txt8.Size      = new System.Drawing.Size(112, 23);
     this.txt8.TabIndex  = 37;
     this.txt8.Tag       = "EMP_ID";
     this.txt8.Text      = "txt8";
     this.txt8.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.txt8_KeyDown);
     this.txt8.Leave    += new System.EventHandler(this.textBox1_Leave);
     this.txt8.Enter    += new System.EventHandler(this.textBox1_Enter);
     //
     // nav1
     //
     this.nav1.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.nav1.Connection    = null;
     this.nav1.ConnectionDel = null;
     this.nav1.Font          = new System.Drawing.Font("Tahoma", 9.75F);
     this.nav1.form          = null;
     this.nav1.FormName      = null;
     this.nav1.Grid          = null;
     this.nav1.History       = false;
     this.nav1.IsNull        = true;
     this.nav1.Language      = "EN";
     this.nav1.Location      = new System.Drawing.Point(102, 124);
     this.nav1.MSG_Exit      = false;
     this.nav1.MulltiDel     = false;
     this.nav1.Name          = "nav1";
     this.nav1.Security      = 0;
     this.nav1.ShowPopupMenu = false;
     this.nav1.Size          = new System.Drawing.Size(144, 32);
     this.nav1.TabIndex      = 12;
     this.nav1.Tag           = "";
     this.nav1.ToolBar_Auto  = true;
     this.nav1.UserID        = null;
     this.nav1.Visible       = false;
     this.nav1.VisibleGrid   = true;
     this.nav1.Where         = null;
     //
     // vs1
     //
     this.vs1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                              | System.Windows.Forms.AnchorStyles.Left)
                                                             | System.Windows.Forms.AnchorStyles.Right)));
     this.vs1.BorderStyle  = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
     this.vs1.ColumnInfo   = "10,1,0,0,0,100,Columns:0{Width:38;}\t";
     this.vs1.Font         = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.vs1.KeyActionTab = C1.Win.C1FlexGrid.KeyActionEnum.MoveAcross;
     this.vs1.Location     = new System.Drawing.Point(4, 32);
     this.vs1.Name         = "vs1";
     this.vs1.Size         = new System.Drawing.Size(364, 480);
     this.vs1.Styles       = ((C1.Win.C1FlexGrid.CellStyleCollection)(new C1.Win.C1FlexGrid.CellStyleCollection("")));
     this.vs1.TabIndex     = 11;
     //
     // splitter2
     //
     this.splitter2.Location = new System.Drawing.Point(372, 0);
     this.splitter2.Name     = "splitter2";
     this.splitter2.Size     = new System.Drawing.Size(3, 516);
     this.splitter2.TabIndex = 1;
     this.splitter2.TabStop  = false;
     //
     // panel9
     //
     this.panel9.Controls.Add(this.txt3);
     this.panel9.Controls.Add(this.txt2);
     this.panel9.Controls.Add(this.txt1);
     this.panel9.Controls.Add(this.nav);
     this.panel9.Controls.Add(this.vs);
     this.panel9.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel9.Location = new System.Drawing.Point(0, 0);
     this.panel9.Name     = "panel9";
     this.panel9.Size     = new System.Drawing.Size(372, 516);
     this.panel9.TabIndex = 0;
     //
     // txt3
     //
     this.txt3.BackColor = System.Drawing.Color.LemonChiffon;
     this.txt3.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txt3.Location  = new System.Drawing.Point(236, 4);
     this.txt3.MaxLength = 20;
     this.txt3.Name      = "txt3";
     this.txt3.Size      = new System.Drawing.Size(132, 23);
     this.txt3.TabIndex  = 36;
     this.txt3.Tag       = "EMP_NM";
     this.txt3.Text      = "textBox3";
     this.txt3.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
     this.txt3.Leave    += new System.EventHandler(this.textBox1_Leave);
     this.txt3.Enter    += new System.EventHandler(this.textBox1_Enter);
     //
     // txt2
     //
     this.txt2.BackColor = System.Drawing.Color.LemonChiffon;
     this.txt2.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txt2.Location  = new System.Drawing.Point(120, 4);
     this.txt2.MaxLength = 20;
     this.txt2.Name      = "txt2";
     this.txt2.Size      = new System.Drawing.Size(112, 23);
     this.txt2.TabIndex  = 35;
     this.txt2.Tag       = "EMP_I1";
     this.txt2.Text      = "textBox3";
     this.txt2.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
     this.txt2.Leave    += new System.EventHandler(this.textBox1_Leave);
     this.txt2.Enter    += new System.EventHandler(this.textBox1_Enter);
     //
     // txt1
     //
     this.txt1.BackColor = System.Drawing.Color.LemonChiffon;
     this.txt1.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.txt1.Location  = new System.Drawing.Point(4, 4);
     this.txt1.MaxLength = 20;
     this.txt1.Name      = "txt1";
     this.txt1.Size      = new System.Drawing.Size(112, 23);
     this.txt1.TabIndex  = 34;
     this.txt1.Tag       = "EMP_ID";
     this.txt1.Text      = "textBox3";
     this.txt1.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
     this.txt1.Leave    += new System.EventHandler(this.textBox1_Leave);
     this.txt1.Enter    += new System.EventHandler(this.textBox1_Enter);
     //
     // nav
     //
     this.nav.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.nav.Connection    = null;
     this.nav.ConnectionDel = null;
     this.nav.Font          = new System.Drawing.Font("Tahoma", 9.75F);
     this.nav.form          = null;
     this.nav.FormName      = null;
     this.nav.Grid          = null;
     this.nav.History       = false;
     this.nav.IsNull        = true;
     this.nav.Language      = "EN";
     this.nav.Location      = new System.Drawing.Point(140, 96);
     this.nav.MSG_Exit      = false;
     this.nav.MulltiDel     = false;
     this.nav.Name          = "nav";
     this.nav.Security      = 0;
     this.nav.ShowPopupMenu = false;
     this.nav.Size          = new System.Drawing.Size(144, 32);
     this.nav.TabIndex      = 9;
     this.nav.Tag           = "";
     this.nav.ToolBar_Auto  = true;
     this.nav.UserID        = null;
     this.nav.Visible       = false;
     this.nav.VisibleGrid   = true;
     this.nav.Where         = null;
     //
     // vs
     //
     this.vs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                             | System.Windows.Forms.AnchorStyles.Left)
                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.vs.BorderStyle  = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
     this.vs.ColumnInfo   = "10,1,0,0,0,100,Columns:0{Width:38;}\t";
     this.vs.Font         = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.vs.KeyActionTab = C1.Win.C1FlexGrid.KeyActionEnum.MoveAcross;
     this.vs.Location     = new System.Drawing.Point(4, 32);
     this.vs.Name         = "vs";
     this.vs.Size         = new System.Drawing.Size(364, 480);
     this.vs.Styles       = ((C1.Win.C1FlexGrid.CellStyleCollection)(new C1.Win.C1FlexGrid.CellStyleCollection("")));
     this.vs.TabIndex     = 10;
     //
     // panel5
     //
     this.panel5.BackColor = System.Drawing.Color.Moccasin;
     this.panel5.Controls.Add(this.txt);
     this.panel5.Controls.Add(this.txt_not);
     this.panel5.Controls.Add(this.label4);
     this.panel5.Controls.Add(this.cb);
     this.panel5.Controls.Add(this.label1);
     this.panel5.Controls.Add(this.dt1);
     this.panel5.Controls.Add(this.cmd_all);
     this.panel5.Controls.Add(this.cmd_clear);
     this.panel5.Controls.Add(this.cmd_ok);
     this.panel5.Controls.Add(this.label3);
     this.panel5.Controls.Add(this.label2);
     this.panel5.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel5.Location = new System.Drawing.Point(0, 0);
     this.panel5.Name     = "panel5";
     this.panel5.Size     = new System.Drawing.Size(748, 124);
     this.panel5.TabIndex = 0;
     //
     // txt
     //
     this.txt.Location  = new System.Drawing.Point(104, 32);
     this.txt.Name      = "txt";
     this.txt.Size      = new System.Drawing.Size(132, 23);
     this.txt.TabIndex  = 159;
     this.txt.Tag       = null;
     this.txt.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_KeyPress);
     //
     // txt_not
     //
     this.txt_not.Location   = new System.Drawing.Point(324, 4);
     this.txt_not.MaxLength  = 50;
     this.txt_not.Multiline  = true;
     this.txt_not.Name       = "txt_not";
     this.txt_not.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.txt_not.Size       = new System.Drawing.Size(416, 76);
     this.txt_not.TabIndex   = 158;
     this.txt_not.Text       = "";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(240, 12);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(88, 23);
     this.label4.TabIndex = 157;
     this.label4.Text     = "label4";
     //
     // cb
     //
     this.cb.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cb.Location              = new System.Drawing.Point(104, 4);
     this.cb.Name                  = "cb";
     this.cb.Size                  = new System.Drawing.Size(132, 24);
     this.cb.TabIndex              = 154;
     this.cb.SelectedValueChanged += new System.EventHandler(this.cb_SelectedValueChanged);
     //
     // label1
     //
     this.label1.ForeColor = System.Drawing.SystemColors.ControlText;
     this.label1.Location  = new System.Drawing.Point(12, 12);
     this.label1.Name      = "label1";
     this.label1.TabIndex  = 153;
     this.label1.Tag       = "";
     this.label1.Text      = "To";
     //
     // dt1
     //
     this.dt1.Font       = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.dt1.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat;
     this.dt1.Location   = new System.Drawing.Point(104, 60);
     this.dt1.Name       = "dt1";
     this.dt1.Size       = new System.Drawing.Size(132, 23);
     this.dt1.TabIndex   = 149;
     this.dt1.Tag        = null;
     //
     // cmd_all
     //
     this.cmd_all.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.cmd_all.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_all.Location  = new System.Drawing.Point(4, 88);
     this.cmd_all.Name      = "cmd_all";
     this.cmd_all.Size      = new System.Drawing.Size(108, 32);
     this.cmd_all.TabIndex  = 147;
     this.cmd_all.Text      = "Select All";
     this.cmd_all.Click    += new System.EventHandler(this.cmd_all_Click);
     //
     // cmd_clear
     //
     this.cmd_clear.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.cmd_clear.BackColor = System.Drawing.Color.Moccasin;
     this.cmd_clear.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_clear.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.cmd_clear.Location  = new System.Drawing.Point(628, 88);
     this.cmd_clear.Name      = "cmd_clear";
     this.cmd_clear.Size      = new System.Drawing.Size(108, 32);
     this.cmd_clear.TabIndex  = 138;
     this.cmd_clear.Text      = "Clear";
     this.cmd_clear.Click    += new System.EventHandler(this.cmd_clear_Click);
     //
     // cmd_ok
     //
     this.cmd_ok.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.cmd_ok.BackColor = System.Drawing.Color.Moccasin;
     this.cmd_ok.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_ok.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.cmd_ok.Location  = new System.Drawing.Point(318, 88);
     this.cmd_ok.Name      = "cmd_ok";
     this.cmd_ok.Size      = new System.Drawing.Size(108, 32);
     this.cmd_ok.TabIndex  = 137;
     this.cmd_ok.Text      = "OK";
     this.cmd_ok.Click    += new System.EventHandler(this.cmd_ok_Click);
     //
     // label3
     //
     this.label3.ForeColor = System.Drawing.SystemColors.ControlText;
     this.label3.Location  = new System.Drawing.Point(12, 68);
     this.label3.Name      = "label3";
     this.label3.TabIndex  = 152;
     this.label3.Tag       = "";
     this.label3.Text      = "To";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(12, 40);
     this.label2.Name     = "label2";
     this.label2.TabIndex = 155;
     this.label2.Text     = "label2";
     //
     // panel3
     //
     this.panel3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.panel3.Controls.Add(this.label5);
     this.panel3.Controls.Add(this.panel4);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel3.Font     = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.panel3.Location = new System.Drawing.Point(0, 0);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(748, 36);
     this.panel3.TabIndex = 4;
     //
     // label5
     //
     this.label5.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.label5.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.label5.Font      = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label5.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.label5.Location  = new System.Drawing.Point(4, 0);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(744, 36);
     this.label5.TabIndex  = 11;
     this.label5.Tag       = "";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel4
     //
     this.panel4.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.panel4.Dock      = System.Windows.Forms.DockStyle.Left;
     this.panel4.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.panel4.Location  = new System.Drawing.Point(0, 0);
     this.panel4.Name      = "panel4";
     this.panel4.Size      = new System.Drawing.Size(4, 36);
     this.panel4.TabIndex  = 10;
     //
     // frmTaQuickChangeSalary
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 16);
     this.ClientSize        = new System.Drawing.Size(1024, 676);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.c1CommandDock1);
     this.Font          = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name          = "frmTaQuickChangeSalary";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "frmTaCopyShift";
     this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
     this.Load         += new System.EventHandler(this.frmTaVacateManager_Load);
     ((System.ComponentModel.ISupportInitialize)(this.c1CommandDock1)).EndInit();
     this.c1CommandDock1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1DockingTab1)).EndInit();
     this.c1DockingTab1.ResumeLayout(false);
     this.c1DockingTabPage1.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel6.ResumeLayout(false);
     this.panel7.ResumeLayout(false);
     this.panel10.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.vs1)).EndInit();
     this.panel9.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.vs)).EndInit();
     this.panel5.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.txt)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dt1)).EndInit();
     this.panel3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.panel3    = new System.Windows.Forms.Panel();
     this.label5    = new System.Windows.Forms.Label();
     this.panel7    = new System.Windows.Forms.Panel();
     this.nav       = new Navigator1._0.NavigatorAuto();
     this.panel1    = new System.Windows.Forms.Panel();
     this.panel4    = new System.Windows.Forms.Panel();
     this.panel9    = new System.Windows.Forms.Panel();
     this.vs2       = new C1.Win.C1FlexGrid.C1FlexGrid();
     this.panel8    = new System.Windows.Forms.Panel();
     this.cmd_clear = new System.Windows.Forms.Button();
     this.splitter2 = new System.Windows.Forms.Splitter();
     this.panel2    = new System.Windows.Forms.Panel();
     this.panel6    = new System.Windows.Forms.Panel();
     this.vs        = new C1.Win.C1FlexGrid.C1FlexGrid();
     this.panel5    = new System.Windows.Forms.Panel();
     this.lb1       = new System.Windows.Forms.Label();
     this.lb        = new System.Windows.Forms.Label();
     this.txt_item  = new C1.Win.C1Input.C1TextBox();
     this.button1   = new System.Windows.Forms.Button();
     this.label2    = new System.Windows.Forms.Label();
     this.txt_INH   = new System.Windows.Forms.TextBox();
     this.txt_Dep   = new System.Windows.Forms.TextBox();
     this.txt_Name  = new System.Windows.Forms.TextBox();
     this.txt_WID   = new System.Windows.Forms.TextBox();
     this.WID       = new System.Windows.Forms.Label();
     this.DWID      = new System.Windows.Forms.Label();
     this.checkBox1 = new System.Windows.Forms.CheckBox();
     this.dt        = new System.Windows.Forms.DateTimePicker();
     this.label1    = new System.Windows.Forms.Label();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.r2        = new System.Windows.Forms.RadioButton();
     this.r1        = new System.Windows.Forms.RadioButton();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.panel3.SuspendLayout();
     this.panel7.SuspendLayout();
     this.panel1.SuspendLayout();
     this.panel4.SuspendLayout();
     this.panel9.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.vs2)).BeginInit();
     this.panel8.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel6.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.vs)).BeginInit();
     this.panel5.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.txt_item)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel3
     //
     this.panel3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.panel3.Controls.Add(this.label5);
     this.panel3.Controls.Add(this.panel7);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel3.Location = new System.Drawing.Point(0, 0);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(824, 36);
     this.panel3.TabIndex = 8;
     //
     // label5
     //
     this.label5.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.label5.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.label5.Font      = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label5.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.label5.Location  = new System.Drawing.Point(348, 0);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(476, 36);
     this.label5.TabIndex  = 12;
     this.label5.Tag       = "";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel7
     //
     this.panel7.Controls.Add(this.nav);
     this.panel7.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel7.Location = new System.Drawing.Point(0, 0);
     this.panel7.Name     = "panel7";
     this.panel7.Size     = new System.Drawing.Size(348, 36);
     this.panel7.TabIndex = 0;
     //
     // nav
     //
     this.nav.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.nav.Connection    = null;
     this.nav.ConnectionDel = null;
     this.nav.Font          = new System.Drawing.Font("Tahoma", 9.75F);
     this.nav.form          = null;
     this.nav.FormName      = null;
     this.nav.Grid          = null;
     this.nav.History       = false;
     this.nav.IsNull        = true;
     this.nav.Language      = "EN";
     this.nav.Location      = new System.Drawing.Point(0, 2);
     this.nav.MSG_Exit      = false;
     this.nav.MulltiDel     = false;
     this.nav.Name          = "nav";
     this.nav.Security      = 0;
     this.nav.ShowPopupMenu = true;
     this.nav.Size          = new System.Drawing.Size(400, 32);
     this.nav.TabIndex      = 14;
     this.nav.Tag           = "";
     this.nav.ToolBar_Auto  = true;
     this.nav.UserID        = null;
     this.nav.VisibleGrid   = true;
     this.nav.Where         = null;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.panel4);
     this.panel1.Controls.Add(this.splitter2);
     this.panel1.Controls.Add(this.panel2);
     this.panel1.Controls.Add(this.splitter1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 36);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(824, 516);
     this.panel1.TabIndex = 9;
     //
     // panel4
     //
     this.panel4.Controls.Add(this.panel9);
     this.panel4.Controls.Add(this.panel8);
     this.panel4.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel4.Location = new System.Drawing.Point(279, 3);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(545, 513);
     this.panel4.TabIndex = 4;
     //
     // panel9
     //
     this.panel9.Controls.Add(this.vs2);
     this.panel9.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel9.Location = new System.Drawing.Point(0, 28);
     this.panel9.Name     = "panel9";
     this.panel9.Size     = new System.Drawing.Size(545, 485);
     this.panel9.TabIndex = 17;
     //
     // vs2
     //
     this.vs2.AllowDragging = C1.Win.C1FlexGrid.AllowDraggingEnum.Both;
     this.vs2.AllowEditing  = false;
     this.vs2.BorderStyle   = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
     this.vs2.ColumnInfo    = "10,1,0,0,0,100,Columns:0{Width:38;}\t";
     this.vs2.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.vs2.KeyActionTab  = C1.Win.C1FlexGrid.KeyActionEnum.MoveAcross;
     this.vs2.Location      = new System.Drawing.Point(0, 0);
     this.vs2.Name          = "vs2";
     this.vs2.Size          = new System.Drawing.Size(545, 485);
     this.vs2.Styles        = ((C1.Win.C1FlexGrid.CellStyleCollection)(new C1.Win.C1FlexGrid.CellStyleCollection("")));
     this.vs2.TabIndex      = 15;
     //
     // panel8
     //
     this.panel8.Controls.Add(this.cmd_clear);
     this.panel8.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel8.Location = new System.Drawing.Point(0, 0);
     this.panel8.Name     = "panel8";
     this.panel8.Size     = new System.Drawing.Size(545, 28);
     this.panel8.TabIndex = 16;
     //
     // cmd_clear
     //
     this.cmd_clear.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmd_clear.Location  = new System.Drawing.Point(4, 4);
     this.cmd_clear.Name      = "cmd_clear";
     this.cmd_clear.TabIndex  = 0;
     this.cmd_clear.Text      = "button2";
     this.cmd_clear.Click    += new System.EventHandler(this.cmd_clear_Click);
     //
     // splitter2
     //
     this.splitter2.Location = new System.Drawing.Point(276, 3);
     this.splitter2.Name     = "splitter2";
     this.splitter2.Size     = new System.Drawing.Size(3, 513);
     this.splitter2.TabIndex = 3;
     this.splitter2.TabStop  = false;
     //
     // panel2
     //
     this.panel2.BackColor = System.Drawing.Color.Moccasin;
     this.panel2.Controls.Add(this.panel6);
     this.panel2.Controls.Add(this.panel5);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel2.Location = new System.Drawing.Point(0, 3);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(276, 513);
     this.panel2.TabIndex = 2;
     //
     // panel6
     //
     this.panel6.Controls.Add(this.vs);
     this.panel6.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel6.Location = new System.Drawing.Point(0, 340);
     this.panel6.Name     = "panel6";
     this.panel6.Size     = new System.Drawing.Size(276, 173);
     this.panel6.TabIndex = 1;
     //
     // vs
     //
     this.vs.AllowDragging = C1.Win.C1FlexGrid.AllowDraggingEnum.Both;
     this.vs.AllowEditing  = false;
     this.vs.BorderStyle   = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
     this.vs.ColumnInfo    = "10,1,0,0,0,100,Columns:0{Width:38;}\t";
     this.vs.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.vs.KeyActionTab  = C1.Win.C1FlexGrid.KeyActionEnum.MoveAcross;
     this.vs.Location      = new System.Drawing.Point(0, 0);
     this.vs.Name          = "vs";
     this.vs.Size          = new System.Drawing.Size(276, 173);
     this.vs.Styles        = ((C1.Win.C1FlexGrid.CellStyleCollection)(new C1.Win.C1FlexGrid.CellStyleCollection("")));
     this.vs.TabIndex      = 14;
     //
     // panel5
     //
     this.panel5.Controls.Add(this.lb1);
     this.panel5.Controls.Add(this.lb);
     this.panel5.Controls.Add(this.txt_item);
     this.panel5.Controls.Add(this.button1);
     this.panel5.Controls.Add(this.label2);
     this.panel5.Controls.Add(this.txt_INH);
     this.panel5.Controls.Add(this.txt_Dep);
     this.panel5.Controls.Add(this.txt_Name);
     this.panel5.Controls.Add(this.txt_WID);
     this.panel5.Controls.Add(this.WID);
     this.panel5.Controls.Add(this.DWID);
     this.panel5.Controls.Add(this.checkBox1);
     this.panel5.Controls.Add(this.dt);
     this.panel5.Controls.Add(this.label1);
     this.panel5.Controls.Add(this.groupBox1);
     this.panel5.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel5.Location = new System.Drawing.Point(0, 0);
     this.panel5.Name     = "panel5";
     this.panel5.Size     = new System.Drawing.Size(276, 340);
     this.panel5.TabIndex = 0;
     //
     // lb1
     //
     this.lb1.BackColor = System.Drawing.Color.Black;
     this.lb1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.lb1.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.lb1.ForeColor = System.Drawing.Color.White;
     this.lb1.Location  = new System.Drawing.Point(0, 200);
     this.lb1.Name      = "lb1";
     this.lb1.Size      = new System.Drawing.Size(276, 116);
     this.lb1.TabIndex  = 185;
     this.lb1.Tag       = "N";
     this.lb1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lb
     //
     this.lb.BackColor = System.Drawing.Color.LemonChiffon;
     this.lb.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.lb.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.lb.ForeColor = System.Drawing.Color.Red;
     this.lb.Location  = new System.Drawing.Point(0, 316);
     this.lb.Name      = "lb";
     this.lb.Size      = new System.Drawing.Size(276, 24);
     this.lb.TabIndex  = 184;
     this.lb.Tag       = "";
     this.lb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // txt_item
     //
     this.txt_item.CustomFormat = "#########";
     this.txt_item.DataType     = typeof(int);
     this.txt_item.EmptyAsNull  = true;
     this.txt_item.Location     = new System.Drawing.Point(96, 172);
     this.txt_item.MaxLength    = 100;
     this.txt_item.Name         = "txt_item";
     this.txt_item.Size         = new System.Drawing.Size(176, 23);
     this.txt_item.TabIndex     = 183;
     this.txt_item.Tag          = null;
     this.txt_item.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.txt_Item_KeyDown);
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.button1.Location  = new System.Drawing.Point(236, 68);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(32, 23);
     this.button1.TabIndex  = 182;
     this.button1.Tag       = "N";
     this.button1.Text      = "...";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(4, 176);
     this.label2.Name     = "label2";
     this.label2.TabIndex = 179;
     this.label2.Text     = "label3";
     //
     // txt_INH
     //
     this.txt_INH.BackColor   = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.txt_INH.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_INH.Location    = new System.Drawing.Point(4, 144);
     this.txt_INH.Name        = "txt_INH";
     this.txt_INH.ReadOnly    = true;
     this.txt_INH.Size        = new System.Drawing.Size(268, 23);
     this.txt_INH.TabIndex    = 178;
     this.txt_INH.Text        = "";
     this.txt_INH.TextAlign   = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // txt_Dep
     //
     this.txt_Dep.BackColor   = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.txt_Dep.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_Dep.Location    = new System.Drawing.Point(4, 120);
     this.txt_Dep.Name        = "txt_Dep";
     this.txt_Dep.ReadOnly    = true;
     this.txt_Dep.Size        = new System.Drawing.Size(268, 23);
     this.txt_Dep.TabIndex    = 177;
     this.txt_Dep.Text        = "";
     this.txt_Dep.TextAlign   = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // txt_Name
     //
     this.txt_Name.BackColor   = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.txt_Name.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_Name.Location    = new System.Drawing.Point(4, 96);
     this.txt_Name.Name        = "txt_Name";
     this.txt_Name.ReadOnly    = true;
     this.txt_Name.Size        = new System.Drawing.Size(268, 23);
     this.txt_Name.TabIndex    = 176;
     this.txt_Name.Text        = "";
     this.txt_Name.TextAlign   = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // txt_WID
     //
     this.txt_WID.Location     = new System.Drawing.Point(96, 68);
     this.txt_WID.Name         = "txt_WID";
     this.txt_WID.Size         = new System.Drawing.Size(140, 23);
     this.txt_WID.TabIndex     = 175;
     this.txt_WID.Text         = "";
     this.txt_WID.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
     this.txt_WID.TextChanged += new System.EventHandler(this.txt_WID_TextChanged);
     this.txt_WID.Leave       += new System.EventHandler(this.txt_WID_Leave);
     //
     // WID
     //
     this.WID.Location = new System.Drawing.Point(4, 72);
     this.WID.Name     = "WID";
     this.WID.TabIndex = 174;
     this.WID.Text     = "label3";
     //
     // DWID
     //
     this.DWID.Location = new System.Drawing.Point(4, 72);
     this.DWID.Name     = "DWID";
     this.DWID.TabIndex = 173;
     this.DWID.Text     = "label2";
     this.DWID.Visible  = false;
     //
     // checkBox1
     //
     this.checkBox1.Location        = new System.Drawing.Point(168, 4);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.TabIndex        = 172;
     this.checkBox1.Text            = "checkBox1";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // dt
     //
     this.dt.CustomFormat = "yyyyMM";
     this.dt.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dt.Location     = new System.Drawing.Point(88, 4);
     this.dt.Name         = "dt";
     this.dt.Size         = new System.Drawing.Size(72, 23);
     this.dt.TabIndex     = 10;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(4, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 18);
     this.label1.TabIndex = 9;
     this.label1.Text     = "label1";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.r2);
     this.groupBox1.Controls.Add(this.r1);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location  = new System.Drawing.Point(4, 24);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(272, 40);
     this.groupBox1.TabIndex  = 171;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Tag       = "N";
     //
     // r2
     //
     this.r2.Checked  = true;
     this.r2.Location = new System.Drawing.Point(148, 16);
     this.r2.Name     = "r2";
     this.r2.Size     = new System.Drawing.Size(120, 20);
     this.r2.TabIndex = 1;
     this.r2.TabStop  = true;
     this.r2.Text     = "radioButton2";
     //
     // r1
     //
     this.r1.Location = new System.Drawing.Point(12, 16);
     this.r1.Name     = "r1";
     this.r1.Size     = new System.Drawing.Size(120, 20);
     this.r1.TabIndex = 0;
     this.r1.Text     = "radioButton1";
     //
     // splitter1
     //
     this.splitter1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.splitter1.Location = new System.Drawing.Point(0, 0);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(824, 3);
     this.splitter1.TabIndex = 1;
     this.splitter1.TabStop  = false;
     //
     // frmTaPieceRateInput
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 16);
     this.ClientSize        = new System.Drawing.Size(824, 552);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.panel3);
     this.Font          = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name          = "frmTaPieceRateInput";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "frmTaPieceRateInput";
     this.Load         += new System.EventHandler(this.frmTaPieceRateInput_Load);
     this.panel3.ResumeLayout(false);
     this.panel7.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.panel9.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.vs2)).EndInit();
     this.panel8.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel6.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.vs)).EndInit();
     this.panel5.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.txt_item)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }