public static DataGridTableStyle frmStock_Items()
        {
            DataGridTableStyle dtStyle = new DataGridTableStyle();
            dtStyle.MappingName = "table";

            DataGridTextBoxColumn id = new DataGridTextBoxColumn();
            id.MappingName = "id";
            id.HeaderText = "ID";
            id.Width = 30;
            dtStyle.GridColumnStyles.Add(id);

            DataGridTextBoxColumn lotno = new DataGridTextBoxColumn();
            lotno.MappingName = "lot_no";
            lotno.HeaderText = "Lot#";
            lotno.Width = 80;
            dtStyle.GridColumnStyles.Add(lotno);

            DataGridTextBoxColumn qty = new DataGridTextBoxColumn();
            qty.MappingName = "qty";
            qty.HeaderText = "Qty";
            qty.Width = 96;
            dtStyle.GridColumnStyles.Add(qty);

            return dtStyle;
        }
		public static void SetGridDataSource(DataGrid grid, object dataSource) {
			grid.DataSource = dataSource;
			DataGridTableStyle ts = new DataGridTableStyle((CurrencyManager) grid.BindingContext[dataSource]);
			grid.TableStyles.Clear();
			grid.TableStyles.Add(ts);
			ts.GridColumnStyles.Clear();
		}
Пример #3
0
        public void generatedatagrid()
        {
            DataGridTableStyle tableStyle = new DataGridTableStyle();
            tableStyle.MappingName = arr1.GetType().Name;

            DataGridTextBoxColumn tbcName = new DataGridTextBoxColumn();
            tbcName.Width = dataGrid1.Width * 50 / 100;
            tbcName.MappingName = "EPC";
            tbcName.HeaderText = "EPC";
            tableStyle.GridColumnStyles.Add(tbcName);

            tbcName = new DataGridTextBoxColumn();
            tbcName.Width = dataGrid1.Width * 20 / 100;
            tbcName.MappingName = "Timestamp";
            tbcName.HeaderText = "Timestamp";
            tableStyle.GridColumnStyles.Add(tbcName);

            tbcName = new DataGridTextBoxColumn();
            tbcName.Width = dataGrid1.Width * 15 / 100;
            tbcName.MappingName = "ReadCount";
            tbcName.HeaderText = "ReadCount";
            tableStyle.GridColumnStyles.Add(tbcName);

            tbcName = new DataGridTextBoxColumn();
            tbcName.Width = dataGrid1.Width * 12 / 100;
            tbcName.MappingName = "Rssi";
            tbcName.HeaderText = "Rssi";
            tableStyle.GridColumnStyles.Add(tbcName);

            dataGrid1.TableStyles.Clear();
            dataGrid1.TableStyles.Add(tableStyle);
        }
Пример #4
0
        public DataGridTableStyle getTableStyle()
        {
            DataGridTableStyle style = new DataGridTableStyle();
            style.MappingName = "ArrayList";

            DataGridTextBoxColumn column = new DataGridTextBoxColumn();
            column.MappingName = "Name";
            column.HeaderText = "Name";
            column.Format = "f4";
            column.Width = 150;
            style.GridColumnStyles.Add(column);

            column = new DataGridTextBoxColumn();
            column.MappingName = "Status";
            column.HeaderText = "Completed";
            column.Format = "f4";
            column.Width = 85;
            style.GridColumnStyles.Add(column);

            column = new DataGridTextBoxColumn();
            column.MappingName = "SupportID";
            column.HeaderText = "SupportID";
            column.Format = "d";
            column.Width = 25;
            style.GridColumnStyles.Add(column);

            column = new DataGridTextBoxColumn();
            column.MappingName = "StatusID";
            column.HeaderText = "StatusID";
            column.Format = "d";
            column.Width = 25;
            style.GridColumnStyles.Add(column);

            return style;
        }
        private void InitGrid()
        {
            grid.ReadOnly = true;

            DataGridTableStyle ts1 = new DataGridTableStyle();
            ts1.MappingName = "SmtpFilters";

            DataGridNoActiveCellColumn TextCol = new DataGridNoActiveCellColumn();
            TextCol.MappingName = "Cost";
            TextCol.HeaderText = "Cost";
            TextCol.Width = 50;
            ts1.GridColumnStyles.Add(TextCol);

            DataGridNoActiveCellColumn TextCol2 = new DataGridNoActiveCellColumn();
            TextCol2.MappingName = "Description";
            TextCol2.HeaderText = "Description";
            TextCol2.Width = 150;
            ts1.GridColumnStyles.Add(TextCol2);

            DataGridNoActiveCellColumn TextCol3 = new DataGridNoActiveCellColumn();
            TextCol3.MappingName = "Assembly";
            TextCol3.HeaderText = "Assembly";
            TextCol3.Width = 150;
            ts1.GridColumnStyles.Add(TextCol3);

            DataGridNoActiveCellColumn TextCol4 = new DataGridNoActiveCellColumn();
            TextCol4.MappingName = "ClassName";
            TextCol4.HeaderText = "ClassName";
            TextCol4.Width = 225;
            ts1.GridColumnStyles.Add(TextCol4);

            ts1.AllowSorting = false;
            grid.TableStyles.Add(ts1);
        }
		public void TestAdd ()
		{
			DataGridTableStyle ts = new DataGridTableStyle ();
			GridColumnStylesCollection sc = ts.GridColumnStyles;			
			sc.CollectionChanged += new CollectionChangeEventHandler (OnCollectionEventHandler);

			// Add single
			ResetEventData ();
			DataGridTextBoxColumn col1 = new DataGridTextBoxColumn ();
			col1.MappingName = "Column1";
			sc.Add (col1);
			Assert.AreEqual (true, eventhandled);
			Assert.AreEqual (col1, Element);
			Assert.AreEqual (CollectionChangeAction.Add, Action);

			// Add multiple
			ResetEventData ();
			DataGridTextBoxColumn elem1 = new DataGridTextBoxColumn ();
			DataGridTextBoxColumn elem2 = new DataGridTextBoxColumn ();
			sc.AddRange (new DataGridTextBoxColumn [] {elem1, elem2});
			Assert.AreEqual (true, eventhandled, "A1");
			Assert.AreEqual (CollectionChangeAction.Add, Action, "A2");
			Assert.AreEqual (elem2, Element, "A3");
			
		}
Пример #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.dgParms      = new System.Windows.Forms.DataGrid();
     this.dgTableStyle = new System.Windows.Forms.DataGridTableStyle();
     ((System.ComponentModel.ISupportInitialize)(this.dgParms)).BeginInit();
     this.SuspendLayout();
     //
     // dgParms
     //
     this.dgParms.CaptionVisible  = false;
     this.dgParms.DataMember      = "";
     this.dgParms.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dgParms.Location        = new System.Drawing.Point(8, 8);
     this.dgParms.Name            = "dgParms";
     this.dgParms.Size            = new System.Drawing.Size(384, 168);
     this.dgParms.TabIndex        = 2;
     this.dgParms.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dgTableStyle
     });
     //
     // dgTableStyle
     //
     this.dgTableStyle.AllowSorting    = false;
     this.dgTableStyle.DataGrid        = this.dgParms;
     this.dgTableStyle.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dgTableStyle.MappingName     = "";
     //
     // SubreportCtl
     //
     this.Controls.Add(this.dgParms);
     this.Name = "SubreportCtl";
     this.Size = new System.Drawing.Size(464, 304);
     ((System.ComponentModel.ISupportInitialize)(this.dgParms)).EndInit();
     this.ResumeLayout(false);
 }
Пример #8
0
        private void dgPickTaskDataBind(bool isReset)
        {
            this.ts = new DataGridTableStyle();
            this.ts.MappingName = new PickTask[] { }.GetType().Name;
            this.ts.GridColumnStyles.Add(this.columnPickId);
            this.ts.GridColumnStyles.Add(this.columnOrderNo);
            this.ts.GridColumnStyles.Add(this.columnFlow);
            this.ts.GridColumnStyles.Add(this.columnItemDescription);
            this.ts.GridColumnStyles.Add(this.columnItemCode);
            this.ts.GridColumnStyles.Add(this.columnOrderedQty);
            this.ts.GridColumnStyles.Add(this.columnPickedQty);
            this.ts.GridColumnStyles.Add(this.columnUom);
            this.ts.GridColumnStyles.Add(this.columnUnitCount);
            this.ts.GridColumnStyles.Add(this.columnWindowTime);
            this.ts.GridColumnStyles.Add(this.columnReleaseTime);
            this.ts.GridColumnStyles.Add(this.columnManufactureParty);

            this.dgPickTask.TableStyles.Clear();
            this.dgPickTask.TableStyles.Add(this.ts);

            if (isReset)
            {
                this.dgPickTask.DataSource = new PickTask[] { };
            }
            else
            {
                PickTask[] pts = this.smartDeviceService.GetPickerTasks(user.Code);
                this.dgPickTask.DataSource = pts;
            }

            this.ResumeLayout();
        }
Пример #9
0
        private void InitialGrid(string sql, System.Windows.Forms.DataGridTableStyle dgstyle)
        {
            DataTable dt = TJSystem.Public.PublicStatic.db.GetDataTable(sql);

            dt.TableName = "p_hscode";
            this.dataGrid1.DataSource = dt.DefaultView;
        }
Пример #10
0
        /// <summary>
        /// 初始化表格控件
        /// </summary>
        private void InitGrid()
        {
            var dgts = new DataGridTableStyle { MappingName = prods.ProDelivery.TableName };


            DataGridColumnStyle dgRowNo = new DataGridTextBoxColumn();
            dgRowNo.Width = 40;
            dgRowNo.MappingName = prods.ProDelivery.RowNoColumn.ColumnName;
            dgRowNo.HeaderText = "序号";
            dgts.GridColumnStyles.Add(dgRowNo);

            //DataGridColumnStyle dgAutoID = new DataGridTextBoxColumn();
            //dgAutoID.Width = 40;
            //dgAutoID.MappingName = "AutoID";
            //dgAutoID.HeaderText = "";
            //dgts.GridColumnStyles.Add(dgAutoID);

            DataGridColumnStyle dgccOrderNumber = new DataGridTextBoxColumn();
            dgccOrderNumber.Width = 120;
            dgccOrderNumber.MappingName = "cCode";
            dgccOrderNumber.HeaderText = "单号";
            dgts.GridColumnStyles.Add(dgccOrderNumber);


            DataGridColumnStyle dgccCusName = new DataGridTextBoxColumn();
            dgccCusName.Width = 70;
            dgccCusName.MappingName = "cCusName";
            dgccCusName.HeaderText = "客户";
            dgts.GridColumnStyles.Add(dgccCusName);

            DataGridColumnStyle dgccMaker = new DataGridTextBoxColumn();
            dgccMaker.Width = 70;
            dgccMaker.MappingName = "cMaker";
            dgccMaker.HeaderText = "制单人";
            dgts.GridColumnStyles.Add(dgccMaker);

            DataGridColumnStyle dgccDepName = new DataGridTextBoxColumn();
            dgccDepName.Width = 70;
            dgccDepName.MappingName = "cDepName";
            dgccDepName.HeaderText = "部门";
            dgts.GridColumnStyles.Add(dgccDepName);

            DataGridColumnStyle dgcMemo = new DataGridTextBoxColumn();
            dgcMemo.Width = 70;
            dgcMemo.MappingName = "cMemo";
            dgcMemo.HeaderText = "备注";
            dgts.GridColumnStyles.Add(dgcMemo);

            DataGridColumnStyle dgccVerifyState = new DataGridTextBoxColumn();
            dgccVerifyState.Width = 70;
            dgccVerifyState.MappingName = "cVerifyState";
            dgccVerifyState.HeaderText = "状态";
            dgts.GridColumnStyles.Add(dgccVerifyState);


            dGridMain.TableStyles.Clear();
            dGridMain.TableStyles.Add(dgts);
            dGridMain.DataSource = prods.ProDelivery;

        }
Пример #11
0
        private void CarregaDadosInterface()
        {
            // DataTable
            System.Data.DataTable dttbMaster = new System.Data.DataTable("Master");

            // DataGridTableStyle
            System.Windows.Forms.DataGridTableStyle dgtbstlMaster = new System.Windows.Forms.DataGridTableStyle();
            dgtbstlMaster.MappingName          = "Master";
            dgtbstlMaster.AllowSorting         = false;
            dgtbstlMaster.AlternatingBackColor = this.BackColor;
            dgtbstlMaster.SelectionForeColor   = System.Drawing.Color.White;
            dgtbstlMaster.SelectionBackColor   = System.Drawing.Color.Black;
            dgtbstlMaster.RowHeadersVisible    = false;

            CarregaDadosInterfaceColunas(ref dttbMaster, ref dgtbstlMaster);
            CarregaDadosInterfaceDados(ref dttbMaster);

            // Ajustando o DataGrid
            m_dgUnidade.TableStyles.Clear();
            m_dgUnidade.TableStyles.Add(dgtbstlMaster);
            m_dgUnidade.DataSource           = dttbMaster;
            m_dgUnidade.AllowNavigation      = true;
            m_dgUnidade.AllowSorting         = false;
            m_dgUnidade.ColumnHeadersVisible = true;
        }
        public static DataGridTableStyle InitializeLogColumns(this ILogFieldProvider stratum, EditableDataGrid grid)
        {
            DataGridTableStyle tblStyle = new DataGridTableStyle();
            tblStyle.MappingName = "LogDO";

            foreach (LogFieldSetupDO field in stratum.LogFields)
            {
                CustomColumnBase col = MakeColumn(field.ColumnType);
                col.MappingName = field.Field;
                col.HeaderText = field.Heading;
                col.Format = field.Format; // 'C' = currency, 'N' = number (E.G. "N1" means one decimal place), #0.00
                col.FormatInfo = null;
                col.NullText = String.Empty;// <- look into this

                if (field.Width == 0.0)
                {
                    col.Width = MeasureTextWidth(grid, field.Heading.Trim()) + 18;//plus 18 to allow for padding
                }
                else
                {
                    col.Width = (int)field.Width;
                }

                tblStyle.GridColumnStyles.Add(col);
            }

            grid.TableStyles.Add(tblStyle);

            return tblStyle;
        }
		public GridTableStylesCollectionTests ()
		{
			DataGrid grid = new DataGrid ();
			GridTableStylesCollection sc = grid.TableStyles;
			sc.CollectionChanged += new CollectionChangeEventHandler (OnCollectionChanged);

			Console.WriteLine ("GridColumnStylesCollection default --- ");
			DumpGridTableStylesCollection (sc);

			Console.WriteLine ("Add single item");
			DataGridTableStyle ts = new DataGridTableStyle ();
			ts.MappingName = "Table1";
			sc.Add (ts);

			Console.WriteLine ("Add multipleitems");
			sc.AddRange (new DataGridTableStyle [] {new DataGridTableStyle (), new DataGridTableStyle ()});
			Console.WriteLine ("Remove At");
			sc.RemoveAt (2);

			Console.WriteLine ("Add single item");
			ts = new DataGridTableStyle ();
			ts.MappingName = "Table2";
			sc.Add (ts);

			for (int i = 0; i < sc.Count; i ++)
				Console.WriteLine ("Element {0}:{1}", i, sc[i].MappingName);

			sc.Remove (ts);
			Console.WriteLine ("Contains Table1 {0}", sc.Contains ("Table1"));
			Console.WriteLine ("Contains Table4 {0}", sc.Contains ("Table4"));
		}
Пример #14
0
Файл: Misc.cs Проект: hkiaipc/lx
        public static DataGridTableStyle CreateDataGridTableStyle(string tableMappingName, string[] dbColName, 
			string[] dgShowName, int[] boolColumnIndex, int [] columnWidth )
        {
            ArgumentChecker.CheckNotNull(dbColName);
            ArgumentChecker.CheckNotNull(dgShowName);
            if ( dbColName.Length != dgShowName.Length )
                throw new ArgumentException( "dbColName.Length != dgShowName.Length" );

            DataGridTableStyle dgts = new DataGridTableStyle();
            dgts.MappingName = tableMappingName;

            DataGridColumnStyle dgcs = null;
            for ( int i=0; i<dbColName.Length; i++ )
            {
                if ( InArray( boolColumnIndex, i ) )
                    dgcs = new DataGridBoolColumn ();
                else
                    dgcs = new DataGridTextBoxColumn();
                if ( columnWidth != null && i < columnWidth.Length )
                {
                    dgcs.Width = columnWidth[ i ];
                }

                dgcs.MappingName = dbColName[i];
                dgcs.HeaderText = dgShowName[i];

                dgts.GridColumnStyles.Add( dgcs );
            }

            return dgts;
        }
Пример #15
0
        public CurrHistory()
        {
            bllCurrency = App.bllCurrency;
            BPS.BLL.Currency.DataSets.dsCurrHistory dsH = bllCurrency.DataSetHistory;
            BPS.BLL.Currency.DataSets.dsCurr        dsC = bllCurrency.DataSet;

            InitializeComponent();

            this.dtCurr = new DataTable("CurrHistory");
            DataColumn currID = new DataColumn("Currency");

            this.dtCurr.Columns.Add(currID);
            for (int i = 0; i < dsC.Currencies.Rows.Count; i++)
            {
                DataColumn dc = new DataColumn(dsC.Currencies.Rows[i]["CurrencyID"].ToString());
                dc.DataType = System.Type.GetType("System.Double");
                this.dtCurr.Columns.Add(dc);
            }
            dataGridTableStyle1 = new DataGridTableStyle();
            this.dataGridTableStyle1.MappingName = "CurrHistory";
            this.dataView1.Table       = this.dtCurr;      //dsH.CurrenciesHistory;
            this.dataGridV1.DataSource = this.dataView1;   //this.dtCurr;
            this.setDgStyle();
            this.dataGridV1.TableStyles.Add(this.dataGridTableStyle1);
            this.dvHistory.Table   = dsH.CurrenciesHistory;
            this.checkBox1.Checked = true;

            App.SetDataGridTableStyle(this.dataGridTableStyle1);
        }
Пример #16
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.panel1              = new System.Windows.Forms.Panel();
     this.myDataGrid1         = new DataGridEx();
     this.dataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.myDataGrid1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(632, 477);
     this.panel1.TabIndex = 20;
     //
     // myDataGrid1
     //
     this.myDataGrid1.BackgroundColor   = System.Drawing.SystemColors.Window;
     this.myDataGrid1.CaptionBackColor  = System.Drawing.Color.PaleTurquoise;
     this.myDataGrid1.CaptionFont       = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.myDataGrid1.CaptionForeColor  = System.Drawing.SystemColors.HotTrack;
     this.myDataGrid1.CaptionText       = "病区床位一览表";
     this.myDataGrid1.DataMember        = "";
     this.myDataGrid1.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.myDataGrid1.HeaderForeColor   = System.Drawing.SystemColors.ControlText;
     this.myDataGrid1.Location          = new System.Drawing.Point(0, 0);
     this.myDataGrid1.Name              = "myDataGrid1";
     this.myDataGrid1.ReadOnly          = true;
     this.myDataGrid1.RowHeadersVisible = false;
     this.myDataGrid1.Size              = new System.Drawing.Size(632, 477);
     this.myDataGrid1.TabIndex          = 20;
     this.myDataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1
     });
     this.myDataGrid1.CurrentCellChanged += new System.EventHandler(this.myDataGrid1_CurrentCellChanged);
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.DataGrid        = this.myDataGrid1;
     this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle1.MappingName     = "";
     //
     // frmCWSX
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(632, 477);
     this.Controls.Add(this.panel1);
     this.Name          = "frmCWSX";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "床位属性";
     this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
     this.Load         += new System.EventHandler(this.frmCWSX_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).EndInit();
     this.ResumeLayout(false);
 }
Пример #17
0
		public void TestAllowSortingChangedEvent_default ()
		{
			DataGridTableStyle dg = new DataGridTableStyle (true);
			eventhandled = false;
			dg.AllowSortingChanged   += new EventHandler (OnEventHandler);
			dg.AllowSorting = !dg.AllowSorting;
			Assert.AreEqual (true, eventhandled, "A2");
		}
Пример #18
0
		public void TestAlternatingBackColorChangedEvent ()
		{
			DataGridTableStyle dg = new DataGridTableStyle ();
			eventhandled = false;
			dg.AlternatingBackColorChanged  += new EventHandler (OnEventHandler);
			dg.AlternatingBackColor = Color.Red;
			Assert.AreEqual (true, eventhandled, "A1");
		}
Пример #19
0
        public void SizeColumnsToContent(DataGrid dataGrid)
        {
            Graphics Graphics = dataGrid.CreateGraphics();

            DataGridTableStyle tableStyle = new DataGridTableStyle();

                DataTable dataTable = (DataTable)dataGrid.DataSource;

                dataGrid.TableStyles.Clear();
                tableStyle.MappingName = dataTable.TableName;
                DataGridTextBoxColumn columnStyle;

                    DataColumn dataColumn = dataTable.Columns[0];
                    columnStyle = new DataGridTextBoxColumn();
                    columnStyle.HeaderText = dataColumn.ColumnName;
                    columnStyle.MappingName = dataColumn.ColumnName;
                    columnStyle.Width = 30;
                    tableStyle.GridColumnStyles.Add(columnStyle);

                    dataColumn = dataTable.Columns[1];
                    columnStyle = new DataGridTextBoxColumn();
                    columnStyle.HeaderText = dataColumn.ColumnName;
                    columnStyle.MappingName = dataColumn.ColumnName;
                    columnStyle.Width = 60;
                    tableStyle.GridColumnStyles.Add(columnStyle);

                    dataColumn = dataTable.Columns[2];
                    columnStyle = new DataGridTextBoxColumn();
                    columnStyle.HeaderText = dataColumn.ColumnName;
                    columnStyle.MappingName = dataColumn.ColumnName;
                    columnStyle.Width = 60;
                    tableStyle.GridColumnStyles.Add(columnStyle);

                    dataColumn = dataTable.Columns[3];
                    columnStyle = new DataGridTextBoxColumn();
                    columnStyle.HeaderText = dataColumn.ColumnName;
                    columnStyle.MappingName = dataColumn.ColumnName;
                    columnStyle.Width = 60;
                    tableStyle.GridColumnStyles.Add(columnStyle);

                    dataColumn = dataTable.Columns[4];
                    columnStyle = new DataGridTextBoxColumn();
                    columnStyle.HeaderText = dataColumn.ColumnName;
                    columnStyle.MappingName = dataColumn.ColumnName;
                    columnStyle.Width = 60;
                    tableStyle.GridColumnStyles.Add(columnStyle);

                    dataColumn = dataTable.Columns[5];
                    columnStyle = new DataGridTextBoxColumn();
                    columnStyle.HeaderText = dataColumn.ColumnName;
                    columnStyle.MappingName = dataColumn.ColumnName;
                    columnStyle.Width = 40;
                    tableStyle.GridColumnStyles.Add(columnStyle);

                dataGrid.TableStyles.Add(tableStyle);

                Graphics.Dispose();
        }
Пример #20
0
        private void FormSTO_Load(object sender, EventArgs e)
        {
            buttonConvert.Hide();
            try
            {
                SqlDataReader dr;
                string sqls = "SELECT COUNT(TagID),COUNT([TagDuplicate]),COUNT(*) FROM MasterKanban";
                SqlCommand cmd = new SqlCommand(sqls, Connect.con2);
                if (Connect.con2.State == ConnectionState.Closed) { Connect.con2.Open(); }
                dr = cmd.ExecuteReader();
                if (dr.Read())
                {
                    labelUniq.Text = "Uniq Item : " + dr[0].ToString();
                    labelDuplicate.Text = "Duplicate Item : " + dr[1].ToString();
                    labelTotal.Text = "Total Scan Item : " + dr[2].ToString();
                }
                dr.Close();
                cmd.Dispose();
                if (Connect.con2.State == ConnectionState.Open) { Connect.con2.Close(); }

                DataSet ds = new DataSet();
                string strSQL = "  select distinct(TagDuplicate), count(TagDuplicate) as Jumlah from MasterKanban where TagDuplicate is not null group by TagDuplicate";
                SqlDataAdapter da = new SqlDataAdapter(strSQL, Connect.con2);
                da.Fill(ds, "LogDuplicat");
                dataGridListDuplicat.DataSource = ds.Tables[0];

                DataGridTableStyle ts = new DataGridTableStyle();
                dataGridListDuplicat.TableStyles.Clear();
                ts.MappingName = "LogDuplicat";

                DataGridTextBoxColumn col1 = new DataGridTextBoxColumn();
                col1.HeaderText = "TagDuplicate";
                col1.MappingName = "TagDuplicate";
                col1.Width = 190;
                ts.GridColumnStyles.Add(col1);

                DataGridTextBoxColumn col2 = new DataGridTextBoxColumn();
                col2.HeaderText = "Jumlah";
                col2.MappingName = "Jumlah";
                col2.Width = 40;
                ts.GridColumnStyles.Add(col2);

                dataGridListDuplicat.TableStyles.Add(ts);
                dataGridListDuplicat.Refresh();

                ds.Tables.Clear();
                da.Dispose();
                ds.Dispose();
                dataGridListDuplicat.Enabled = true;
                
            }
            catch (SqlException ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
                this.Close();
            }
        }
		public GridColumnStylesCollectionTests ()
		{
			DataGridTableStyle ts = new DataGridTableStyle ();
			GridColumnStylesCollection sc = ts.GridColumnStyles;

			Console.WriteLine ("GridColumnStylesCollection default --- ");
			DumpGridColumnStylesCollection (sc);

		}
Пример #22
0
        /// <summary>
        /// 初始化表格控件
        /// </summary>
        private void InitGrid()
        {
            var dgts = new DataGridTableStyle { MappingName = prods.StockDetail.TableName };


            DataGridColumnStyle dgRowNo = new DataGridTextBoxColumn();
            dgRowNo.Width = 40;
            dgRowNo.MappingName = "RowNo";
            dgRowNo.HeaderText = "序号";
            dgts.GridColumnStyles.Add(dgRowNo);

            DataGridColumnStyle dgAutoID = new DataGridTextBoxColumn();
            dgAutoID.Width = 90;
            dgAutoID.MappingName = "FBatchNo";
            dgAutoID.HeaderText = "批号";
            dgts.GridColumnStyles.Add(dgAutoID);

            DataGridColumnStyle dgccOrderNumber = new DataGridTextBoxColumn();
            dgccOrderNumber.Width = 90;
            dgccOrderNumber.MappingName = "FQty";
            dgccOrderNumber.HeaderText = "数量";
            dgts.GridColumnStyles.Add(dgccOrderNumber);


            DataGridColumnStyle dgccInvCode = new DataGridTextBoxColumn();
            dgccInvCode.Width = 60;
            dgccInvCode.MappingName = "FStockName";
            dgccInvCode.HeaderText = "仓库";
            dgts.GridColumnStyles.Add(dgccInvCode);

            DataGridColumnStyle dgccInvName = new DataGridTextBoxColumn();
            dgccInvName.Width = 80;
            dgccInvName.MappingName = "FStockPlaceNumber";
            dgccInvName.HeaderText = "仓位编码";
            dgts.GridColumnStyles.Add(dgccInvName);

            //DataGridColumnStyle dgccUnit = new DataGridTextBoxColumn();
            //dgccUnit.Width = 60;
            //dgccUnit.MappingName = "cUnit";
            //dgccUnit.HeaderText = "单位";
            //dgts.GridColumnStyles.Add(dgccUnit);

            DataGridColumnStyle dgciQuantity = new DataGridTextBoxColumn();
            dgciQuantity.Width = 70;
            dgciQuantity.MappingName = "FStockPlaceName";
            dgciQuantity.HeaderText = "仓位";
            dgts.GridColumnStyles.Add(dgciQuantity);




            dGridMain.TableStyles.Clear();
            dGridMain.TableStyles.Add(dgts);
            dGridMain.DataSource = prods.StockDetail;

        }
Пример #23
0
        /// <summary>
        /// 初始化表格控件
        /// </summary>
        private void InitGrid()
        {
            var dgts = new DataGridTableStyle { MappingName = rds.RmProduce.TableName};


            DataGridColumnStyle dgAutoID = new DataGridTextBoxColumn();
            dgAutoID.Width = 40;
            dgAutoID.MappingName = "RowNo";
            dgAutoID.HeaderText = "序号";
            dgts.GridColumnStyles.Add(dgAutoID);

            DataGridColumnStyle dgccCode = new DataGridTextBoxColumn();
            dgccCode.Width = 120;
            dgccCode.MappingName = "cCode";
            dgccCode.HeaderText = "班次单号";
            dgts.GridColumnStyles.Add(dgccCode);


            DataGridColumnStyle dgccInvCode = new DataGridTextBoxColumn();
            dgccInvCode.Width = 60;
            dgccInvCode.MappingName = "cInvCode";
            dgccInvCode.HeaderText = "原料编码";
            dgts.GridColumnStyles.Add(dgccInvCode);

            DataGridColumnStyle dgccInvName = new DataGridTextBoxColumn();
            dgccInvName.Width = 80;
            dgccInvName.MappingName = "cInvName";
            dgccInvName.HeaderText = "原料名称";
            dgts.GridColumnStyles.Add(dgccInvName);

            //DataGridColumnStyle dgccUnit = new DataGridTextBoxColumn();
            //dgccUnit.Width = 60;
            //dgccUnit.MappingName = "cUnit";
            //dgccUnit.HeaderText = "单位";
            //dgts.GridColumnStyles.Add(dgccUnit);

            DataGridColumnStyle dgciQuantity = new DataGridTextBoxColumn();
            dgciQuantity.Width = 70;
            dgciQuantity.MappingName = "iQuantity";
            dgciQuantity.HeaderText = "数量";
            dgts.GridColumnStyles.Add(dgciQuantity);



            DataGridColumnStyle dgcMemo = new DataGridTextBoxColumn();
            dgcMemo.Width = 70;
            dgcMemo.MappingName = "cMemo";
            dgcMemo.HeaderText = "备注";
            dgts.GridColumnStyles.Add(dgcMemo);


            dGridMain.TableStyles.Clear();
            dGridMain.TableStyles.Add(dgts);
            dGridMain.DataSource = rds.RmProduce;

        }
Пример #24
0
        public void ReadOnlyTest()
        {
            using (SWF.Form form = new SWF.Form()) {
                SWF.DataGrid datagrid = GetControlInstance() as SWF.DataGrid;
                datagrid.ColumnHeadersVisible = true;
                form.Controls.Add(datagrid);
                form.Show();

                SWF.DataGridTableStyle style = new SWF.DataGridTableStyle();
                style.MappingName = "MyTable";
                style.GridColumnStyles.Clear();

                SWF.DataGridTextBoxColumn col = new SWF.DataGridTextBoxColumn();
                col.MappingName = col.HeaderText = "MyColumn1";
                col.ReadOnly    = true;
                style.GridColumnStyles.Add(col);

                col             = new SWF.DataGridTextBoxColumn();
                col.MappingName = col.HeaderText = "MyColumn2";
                col.ReadOnly    = false;
                style.GridColumnStyles.Add(col);

                datagrid.TableStyles.Clear();
                datagrid.TableStyles.Add(style);

                IRawElementProviderFragment datagridProvider
                    = (IRawElementProviderFragment)GetProviderFromControl(datagrid);

                IRawElementProviderFragment child = datagridProvider.Navigate(
                    NavigateDirection.FirstChild);
                while (child != null)
                {
                    int controlType = (int)child.GetPropertyValue(
                        AutomationElementIdentifiers.ControlTypeProperty.Id);
                    if (controlType == ControlType.DataItem.Id &&
                        (string)child.GetPropertyValue(AutomationElementIdentifiers.NameProperty.Id) == "hello 1")
                    {
                        break;
                    }

                    child = child.Navigate(NavigateDirection.NextSibling);
                }

                child = child.Navigate(NavigateDirection.FirstChild);

                Assert.AreEqual(typeof(DataGridProvider.DataGridDataItemEditProvider), child.GetType());

                Assert.AreEqual("hello 1", (string)child.GetPropertyValue(AutomationElementIdentifiers.NameProperty.Id));

                IValueProvider valueProvider = child.GetPatternProvider(
                    ValuePatternIdentifiers.Pattern.Id) as IValueProvider;

                Assert.IsNotNull(valueProvider, "Child does not support ValueProvider!");
                Assert.IsTrue(valueProvider.IsReadOnly, "Child is not read only.");
            }
        }
        // private bool hasRelationships = false;
        // private Font linkFont = null;
        // private new DataGrid dataGrid; // Currently used only to obtain a Graphics object for measuring text

        // private Rectangle relationshipRect   = Rectangle.Empty;
        // private int       relationshipHeight = 0;

        // relationships
        // we should get this directly from the dgTable.
        // private ArrayList     relationships;
        // private int            focusedRelation = -1;
        // private int          focusedTextWidth;

        public DataGridRelationshipRow(DataGrid dataGrid, DataGridTableStyle dgTable, int rowNumber)
        : base(dataGrid, dgTable, rowNumber) {
            // this.dataGrid = dataGrid;
            // linkFont = dataGrid.LinkFont;
            // relationshipHeight = dataGrid.LinkFontHeight + this.dgTable.relationshipSpacing;

            // if (DataGrid.AllowNavigation) {
            //     hasRelationships = dgTable.RelationsList.Count > 0;
            // }
        }
        internal protected override int MinimumRowHeight(DataGridTableStyle dgTable) {
            /*
            if (DataGrid != null && DataGrid.LinkFontHeight + this.dgTable.relationshipSpacing != relationshipHeight) {
                relationshipRect = Rectangle.Empty;
                relationshipHeight = DataGrid.LinkFontHeight + this.dgTable.relationshipSpacing;
            }
            */

            return base.MinimumRowHeight(dgTable) + (this.expanded ? GetRelationshipRect().Height : 0);
        }
Пример #27
0
        private void CreateListItem(int row, SWF.DataGridTableStyle tableStyle)
        {
            DataGridDataItemProvider item = new DataGridDataItemProvider(this,
                                                                         row,
                                                                         datagrid,
                                                                         tableStyle);

            item.Initialize();
            AddChildProvider(item);
            items.Add(item);
        }
Пример #28
0
        /// <summary>
        /// 初始化表格控件
        /// </summary>
        private void InitGrid()
        {
            var dgts = new DataGridTableStyle { MappingName = rds.RmPo.TableName };


            DataGridColumnStyle dgAutoID = new DataGridTextBoxColumn();
            dgAutoID.Width = 40;
            dgAutoID.MappingName = "RowNo";
            dgAutoID.HeaderText = "序号";
            dgts.GridColumnStyles.Add(dgAutoID);

            DataGridColumnStyle dgccOrderNumber = new DataGridTextBoxColumn();
            dgccOrderNumber.Width = 120;
            dgccOrderNumber.MappingName = "cOrderNumber";
            dgccOrderNumber.HeaderText = "采购单号";
            dgts.GridColumnStyles.Add(dgccOrderNumber);

            DataGridColumnStyle dgccVendor = new DataGridTextBoxColumn();
            dgccVendor.Width = 120;
            dgccVendor.MappingName = "cVendor";
            dgccVendor.HeaderText = "供应商";
            dgts.GridColumnStyles.Add(dgccVendor);

            DataGridColumnStyle dgcMemo = new DataGridTextBoxColumn();
            dgcMemo.Width = 70;
            dgcMemo.MappingName = "cMemo";
            dgcMemo.HeaderText = "备注";
            dgts.GridColumnStyles.Add(dgcMemo);

            DataGridColumnStyle dgcdLoadDate = new DataGridTextBoxColumn();
            dgcdLoadDate.Width = 100;
            dgcdLoadDate.MappingName = "dLoadDate";
            dgcdLoadDate.HeaderText = "下载时间";
            dgts.GridColumnStyles.Add(dgcdLoadDate);
            //dgccUnit.Width = 60;
            //dgccUnit.MappingName = "cUnit";
            //dgccUnit.HeaderText = "单位";
            //dgts.GridColumnStyles.Add(dgccUnit);

            DataGridColumnStyle dgciQuantity = new DataGridTextBoxColumn();
            dgciQuantity.Width = 70;
            dgciQuantity.MappingName = "iQuantity";
            dgciQuantity.HeaderText = "总数";
            dgts.GridColumnStyles.Add(dgciQuantity);





            dGridMain.TableStyles.Clear();
            dGridMain.TableStyles.Add(dgts);
            dGridMain.DataSource = rds.RmPo;

        }
		public void TestDefaultValues ()
		{
			DataGridTableStyle ts = new DataGridTableStyle ();
			GridColumnStylesCollection sc = ts.GridColumnStyles;

			Assert.AreEqual (false, sc.IsSynchronized, "IsSynchronized property");
			Assert.AreEqual (0, sc.Count, "Count");
			Assert.AreEqual (sc, sc.SyncRoot, "SyncRoot property");
			Assert.AreEqual (false, ((IList)sc).IsFixedSize, "IsFixedSize property");
			Assert.AreEqual (false, sc.IsReadOnly, "IsReadOnly property");
		}
Пример #30
0
        /// <summary>
        /// 初始化表格控件
        /// </summary>
        private void InitGrid()
        {
            var dgts = new DataGridTableStyle { MappingName = rds.RmProduceDetail.TableName };


            DataGridColumnStyle dgAutoID = new DataGridTextBoxColumn();
            dgAutoID.Width = 40;
            dgAutoID.MappingName = "RowNo";
            dgAutoID.HeaderText = "序号";
            dgts.GridColumnStyles.Add(dgAutoID);

            DataGridColumnStyle dgccCode = new DataGridTextBoxColumn();
            dgccCode.Width = 120;
            dgccCode.MappingName = "cLotNo";
            dgccCode.HeaderText = "批号";
            dgts.GridColumnStyles.Add(dgccCode);


            DataGridColumnStyle dgccInvCode = new DataGridTextBoxColumn();
            dgccInvCode.Width = 60;
            dgccInvCode.MappingName = "cInvCode";
            dgccInvCode.HeaderText = "产品编码";
            dgts.GridColumnStyles.Add(dgccInvCode);

            DataGridColumnStyle dgccInvName = new DataGridTextBoxColumn();
            dgccInvName.Width = 80;
            dgccInvName.MappingName = "cInvName";
            dgccInvName.HeaderText = "产品名称";
            dgts.GridColumnStyles.Add(dgccInvName);

            //DataGridColumnStyle dgccUnit = new DataGridTextBoxColumn();
            //dgccUnit.Width = 60;
            //dgccUnit.MappingName = "cUnit";
            //dgccUnit.HeaderText = "单位";
            //dgts.GridColumnStyles.Add(dgccUnit);

            DataGridColumnStyle dgciQuantity = new DataGridTextBoxColumn();
            dgciQuantity.Width = 70;
            dgciQuantity.MappingName = "iQuantity";
            dgciQuantity.HeaderText = "数量";
            dgts.GridColumnStyles.Add(dgciQuantity);

            DataGridColumnStyle dgcCode = new DataGridTextBoxColumn();
            dgcCode.Width = 60;
            dgcCode.MappingName = "FSPNumber";
            dgcCode.HeaderText = "库位";
            dgts.GridColumnStyles.Add(dgcCode);


            dGridMain.TableStyles.Clear();
            dGridMain.TableStyles.Add(dgts);
            dGridMain.DataSource = rds.RmProduceDetail;

        }
Пример #31
0
            public DataGridDataItemProvider(DataGridProvider provider,
                                            int row,
                                            SWF.DataGrid dataGrid,
                                            SWF.DataGridTableStyle style)
                : base(provider, provider, dataGrid, row)
            {
                this.provider = provider;
                this.style    = style;
                name          = string.Empty;

                columns = new Dictionary <SWF.DataGridColumnStyle, DataGridDataItemEditProvider> ();
            }
Пример #32
0
		public void TestDefaultValues ()
		{
			DataGridTableStyle dg = new DataGridTableStyle ();

			Assert.AreEqual (true, dg.AllowSorting, "AllowSorting property");
			Assert.AreEqual (true, dg.ColumnHeadersVisible, "ColumnHeadersVisible property");
			Assert.AreEqual (DataGridLineStyle.Solid, dg.GridLineStyle, "GridLineStyle property");
			Assert.AreEqual (75, dg.PreferredColumnWidth, "PreferredColumnWidth property");
			Assert.AreEqual (false, dg.ReadOnly, "ReadOnly property");
			Assert.AreEqual (true, dg.RowHeadersVisible, "RowHeadersVisible property");
			Assert.AreEqual (35, dg.RowHeaderWidth, "RowHeaderWidth property");
		}
Пример #33
0
        /// <summary>
        /// Atualiza o grid a partir de uma List que refência a classe ItemProposta.
        /// </summary>
        private void atualizaDataGridItensProposta(List<ProdutoProposta> listItemProposta)
        {
            //buscaItensBaseMobile();

            DataGridTableStyle tbStyle = new DataGridTableStyle();
            tbStyle.MappingName = "ItemProposta";

            DataGridTextBoxColumn codigoItem = new DataGridTextBoxColumn();
            codigoItem.MappingName = "codigoITEMPROPOSTA";
            codigoItem.HeaderText = "Código";
            codigoItem.Width = 42;
            tbStyle.GridColumnStyles.Add(codigoItem);

            DataGridTextBoxColumn itemProposta = new DataGridTextBoxColumn();
            itemProposta.MappingName = "propostaITEMPROPOSTA";
            itemProposta.HeaderText = "Item";
            itemProposta.Width = 42;
            tbStyle.GridColumnStyles.Add(itemProposta);

            DataGridTextBoxColumn nomeItemProposta = new DataGridTextBoxColumn();
            nomeItemProposta.MappingName = "nomePRODUTO";
            nomeItemProposta.HeaderText = "Nome";
            nomeItemProposta.Width = 42;
            tbStyle.GridColumnStyles.Add(nomeItemProposta);

            DataGridTextBoxColumn partnumberItem = new DataGridTextBoxColumn();
            partnumberItem.MappingName = "partnumberPRODUTO";
            partnumberItem.HeaderText = "partnumber";
            partnumberItem.Width = 42;
            tbStyle.GridColumnStyles.Add(partnumberItem);

            DataGridTextBoxColumn ean13Item = new DataGridTextBoxColumn();
            ean13Item.MappingName = "ean13PRODUTO";
            ean13Item.HeaderText = "Ean13";
            ean13Item.Width = 42;
            tbStyle.GridColumnStyles.Add(ean13Item);

            DataGridTextBoxColumn produtoseparadoItem = new DataGridTextBoxColumn();
            produtoseparadoItem.MappingName = "PRODUTO";
            produtoseparadoItem.HeaderText = "ProdutoSeparado";
            produtoseparadoItem.Width = 42;
            tbStyle.GridColumnStyles.Add(produtoseparadoItem);

            DataGridTextBoxColumn quantidade = new DataGridTextBoxColumn();
            quantidade.MappingName = "QTD";
            quantidade.HeaderText = "Quantidade";
            quantidade.Width = 42;
            tbStyle.GridColumnStyles.Add(quantidade);

            dgProposta.TableStyles.Clear();
            dgProposta.TableStyles.Add(tbStyle);
            //dgProposta.DataSource = dt;
        }
Пример #34
0
        public RateGrid(string mappingName, string captionTxt)
            : base()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            Font myFont;

            columnPercents = new ArrayList();

            // Caption
            myFont = new Font("Microsoft San Serif", 10);

            this.rateDataGrid.CaptionFont = myFont;
            this.rateDataGrid.CaptionForeColor = Color.SteelBlue;
            this.rateDataGrid.CaptionBackColor = Color.WhiteSmoke;
            this.rateDataGrid.CaptionText = captionTxt;

            // Regular Grid
            myFont = new Font("Microsoft San Serif", 8);
            this.rateDataGrid.Font = myFont;
            this.rateDataGrid.ReadOnly = true;
            this.rateDataGrid.FlatMode = true;

            this.rateDataGrid.BorderStyle = BorderStyle.None;

            this.rateDataGrid.GridLineColor = Color.Black;
            this.rateDataGrid.GridLineStyle = DataGridLineStyle.Solid;

            this.rateDataGrid.BackgroundColor = Color.WhiteSmoke;

            DataGridTableStyle tStyle = new DataGridTableStyle();

            tStyle.ReadOnly = true;
            tStyle.MappingName = mappingName;

            tStyle.AlternatingBackColor = Color.LightSteelBlue;
            tStyle.GridLineColor = Color.Gainsboro;
            tStyle.GridLineStyle = DataGridLineStyle.Solid;

            // Header Formatting
            tStyle.HeaderBackColor = Color.SlateGray;
            tStyle.HeaderForeColor = Color.Black;

            myFont = new Font("Microsoft San Serif", 9, System.Drawing.FontStyle.Bold);
            tStyle.HeaderFont = myFont;

            tStyle.AllowSorting = false;
            tStyle.RowHeadersVisible = false;

            this.rateDataGrid.TableStyles.Add(tStyle);
            this.Order = 0;
        }
Пример #35
0
// <Snippet1>
// <Snippet2>
// <Snippet3>
        private void AddCustomDataTableStyle()
        {
            myDataGridTableStyle1 = new DataGridTableStyle();

            // EventHandlers
            myDataGridTableStyle1.GridLineColorChanged += new System.EventHandler(GridLineColorChanged_Handler);
            myDataGridTableStyle1.MappingName           = "Customers";

            // Set other properties.
            myDataGridTableStyle1.AlternatingBackColor = System.Drawing.Color.Gold;
            myDataGridTableStyle1.BackColor            = System.Drawing.Color.White;
            myDataGridTableStyle1.GridLineStyle        = System.Windows.Forms.DataGridLineStyle.Solid;
            myDataGridTableStyle1.GridLineColor        = Color.Red;

            // Set the HeaderText and Width properties.
            DataGridColumnStyle myBoolCol = new DataGridBoolColumn();

            myBoolCol.MappingName = "Current";
            myBoolCol.HeaderText  = "IsCurrent Customer";
            myBoolCol.Width       = 150;
            myDataGridTableStyle1.GridColumnStyles.Add(myBoolCol);

            // Add a second column style.
            DataGridColumnStyle myTextCol = new DataGridTextBoxColumn();

            myTextCol.MappingName = "custName";
            myTextCol.HeaderText  = "Customer Name";
            myTextCol.Width       = 250;
            myDataGridTableStyle1.GridColumnStyles.Add(myTextCol);

            // Create new ColumnStyle objects
            DataGridColumnStyle cOrderDate = new DataGridTextBoxColumn();

            cOrderDate.MappingName = "OrderDate";
            cOrderDate.HeaderText  = "Order Date";
            cOrderDate.Width       = 100;

            // Use a PropertyDescriptor to create a formatted column.
            PropertyDescriptorCollection myPropertyDescriptorCollection = BindingContext
                                                                          [myDataSet, "Customers.custToOrders"].GetItemProperties();

            // Create a formatted column using a PropertyDescriptor.
            DataGridColumnStyle csOrderAmount =
                new DataGridTextBoxColumn(myPropertyDescriptorCollection["OrderAmount"], "c", true);

            csOrderAmount.MappingName = "OrderAmount";
            csOrderAmount.HeaderText  = "Total";
            csOrderAmount.Width       = 100;

            // Add the DataGridTableStyle instances to the GridTableStylesCollection.
            myDataGrid.TableStyles.Add(myDataGridTableStyle1);
        }
 internal void CheckForMappingNameDuplicates(DataGridTableStyle table)
 {
     if (!string.IsNullOrEmpty(table.MappingName))
     {
         for (int i = 0; i < this.items.Count; i++)
         {
             if (((DataGridTableStyle) this.items[i]).MappingName.Equals(table.MappingName) && (table != this.items[i]))
             {
                 throw new ArgumentException(System.Windows.Forms.SR.GetString("DataGridTableStyleDuplicateMappingName"), "table");
             }
         }
     }
 }
 public virtual void AddRange(DataGridTableStyle[] tables)
 {
     if (tables == null)
     {
         throw new ArgumentNullException("tables");
     }
     foreach (DataGridTableStyle style in tables)
     {
         style.DataGrid = this.owner;
         style.MappingNameChanged += new EventHandler(this.TableStyleMappingNameChanged);
         this.items.Add(style);
     }
     this.OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null));
 }
// <Snippet1>
// <Snippet2>
        private void AddCustomDataTableStyle()
        {
            myDataGridTableStyle1 = new DataGridTableStyle();
            myDataGridTableStyle1.MappingNameChanged +=
                new System.EventHandler(MappingNameChanged_Handler);
            myDataGridTableStyle1.GridLineStyleChanged +=
                new System.EventHandler(GridLineStyleChanged_Handler);
            myDataGridTableStyle1.MappingName = "Customers";

            // Set other properties.
            myDataGridTableStyle1.AlternatingBackColor = Color.LightGray;
            myDataGridTableStyle1.GridLineStyle        =
                System.Windows.Forms.DataGridLineStyle.None;

            // Add a GridColumnStyle and set its MappingName.
            DataGridColumnStyle myBoolCol = new DataGridBoolColumn();

            myBoolCol.MappingName = "Current";
            myBoolCol.HeaderText  = "IsCurrent Customer";
            myBoolCol.Width       = 150;
            myDataGridTableStyle1.GridColumnStyles.Add(myBoolCol);

            // Add a second column style.
            DataGridColumnStyle myTextCol = new DataGridTextBoxColumn();

            myTextCol.MappingName = "custName";
            myTextCol.HeaderText  = "Customer Name";
            myTextCol.Width       = 250;
            myDataGridTableStyle1.GridColumnStyles.Add(myTextCol);

            // Create new ColumnStyle objects.
            DataGridColumnStyle cOrderDate = new DataGridTextBoxColumn();

            cOrderDate.MappingName = "OrderDate";
            cOrderDate.HeaderText  = "Order Date";
            cOrderDate.Width       = 100;

            // Use PropertyDescriptor to create a formatted column.
            PropertyDescriptorCollection myPropertyDescriptorCollection = this.BindingContext
                                                                          [myDataSet, "Customers.custToOrders"].GetItemProperties();
            DataGridColumnStyle csOrderAmount =
                new DataGridTextBoxColumn(myPropertyDescriptorCollection["OrderAmount"], "c", true);

            csOrderAmount.MappingName = "OrderAmount";
            csOrderAmount.HeaderText  = "Total";
            csOrderAmount.Width       = 100;

            // Add the DataGridTableStyle object to GridTableStylesCollection.
            myDataGrid.TableStyles.Add(myDataGridTableStyle1);
        }
Пример #39
0
        private void BindDataGrid()
        {
            myConnection = default(SqlCeConnection);
            DataTable dt = new DataTable();
            Adapter = default(SqlCeDataAdapter);
            myConnection = new SqlCeConnection(storagePath.getDatabasePath());
            myConnection.Open();
            myCommand = myConnection.CreateCommand();
            myCommand.CommandText = "SELECT [id], [item], [qty],[unit] FROM [" + tableName + "]";
            myCommand.CommandType = CommandType.Text;

            Adapter = new SqlCeDataAdapter(myCommand);
            Adapter.Fill(dt);

            myConnection.Close();

            DataGridTableStyle tableStyle = new DataGridTableStyle();
            tableStyle.MappingName = dt.TableName;

            DataGridTextBoxColumn column = new DataGridTextBoxColumn();
            column.MappingName = "id";
            column.HeaderText = "ID";
            column.Width = 30;
            tableStyle.GridColumnStyles.Add(column);

            column = new DataGridTextBoxColumn();
            column.MappingName = "item";
            column.HeaderText = "item";
            column.Width = 40;
            tableStyle.GridColumnStyles.Add(column);

            column = new DataGridTextBoxColumn();
            column.Width = 70;
            column.MappingName = "qty";
            column.HeaderText = "qty";
            tableStyle.GridColumnStyles.Add(column);

            column = new DataGridTextBoxColumn();
            column.Width = 70;
            column.MappingName = "unit";
            column.HeaderText = "unit";
            tableStyle.GridColumnStyles.Add(column);

            this.dgvData.DataSource = dt;

            this.dgvData.TableStyles.Clear();
            this.dgvData.TableStyles.Add(tableStyle);

            dt = null;
        }
Пример #40
0
        private void CreateHeader(SWF.DataGridTableStyle tableStyle)
        {
            if (!datagrid.ColumnHeadersVisible || header != null)
            {
                return;
            }

            header = new DataGridHeaderProvider(this, tableStyle.GridColumnStyles);
            header.Initialize();
            AddChildProvider(header);

            SetBehavior(TablePatternIdentifiers.Pattern,
                        new TableProviderBehavior(this));
        }
Пример #41
0
        public Form1()
        {
            InitializeComponent();
            // tell our form that we want to intercept all key press events in our form.Otherwise our KeyPress event method will only get events when the form class has focus.
            //this.KeyPreview = true;

            //give our dataGrid our SIP, so that I can listen and react to events on our SIP
            editableDataGrid1.SIP = inputPanel1;

            editableDataGrid1.CellValidating += new EditableDataGridCellValidatingEventHandler(editableDataGrid1_CellValidating);
            editableDataGrid1.CellValueChanged += new EditableDataGridCellValueChangedEventHandler(editableDataGrid1_CellValueChanged);

            buttonPanel1.Text = "something";

            ////allow new rows on datagrid
            //editableDataGrid1.AllowNewRow = true;

            //set up columns for our dataGrid
            DataGridTableStyle ts = new DataGridTableStyle() { MappingName = "something" };
            comboBoxCol = new EditableComboBoxColumn() { MappingName = "num1" };
            textBoxCol = new EditableTextBoxColumn() { MappingName = "word", MaxTextLength = 12, GoToNextColumnWhenTextCompleate = true };
            dateTimeCol = new EditableDateTimePickerColumn() { MappingName = "date" };
            upDwnCol = new EditableUpDownColumn() { MappingName = "upDwn" };
            ts.GridColumnStyles.Add(comboBoxCol);
            ts.GridColumnStyles.Add(textBoxCol);
            ts.GridColumnStyles.Add(dateTimeCol);
            ts.GridColumnStyles.Add(upDwnCol);

            //set up our button column and give it a event handler for button clicks
            //note the mapping name for the buttonColumn must be provided and a valid property to bind to
            //this is because the dataGrid only displays columns that have a valid MappingName
            //I've created a work around that should work for Full Framework, and will probably be able to make a workaround for Mobile
            //, but until then provide a mapping name.
            //For DAL DataObjects you could use the Tag property as a mapping name, since it isn't reserved for any propuse, and is intended for special cases like this.
            DataGridButtonColumn buttonCol = new DataGridButtonColumn() { MappingName = "button", UseCellColumnTextForCellValue = true, Text = "click me" };
            buttonCol.Click += new ButtonCellClickEventHandler(buttonCol_Click);
            ts.GridColumnStyles.Add(buttonCol);

            editableDataGrid1.TableStyles.Add(ts);

            //create some dummy data to test the grid
            List<something> things = new List<something>();
            for (int i = 0; i < 100; i++)
            {
                things.Add(new something() { num1 = i, word = "word", button = "click me" });
            }
            bindingSource1.DataSource = things;
            //editableDataGrid1.DataSource = things;
        }
Пример #42
0
        public clsCtl_ChargeMaintenance()
        {
            ds = new DataSet();
            dt = new DataTable();
            ds.Tables.Add(dt);
            dt.TableName = "dt";
            objSvc       = new clsDcl_ChargeMaintenance();
            objArry      = new ArrayList();
            m_GridStyle  = new DataGridTableStyle();

            m_GridStyle.MappingName = "dt";
            //
            // TODO: 在此处添加构造函数逻辑
            //
        }
// <Snippet1>
// <Snippet2>

        private void DataGridTableStyle_Sample_Load(object sender,
                                                    EventArgs e)
        {
            myDataGridTableStyle1 = new DataGridTableStyle();
            myHeaderLabel.Text    = "Header Status :"
                                    + myDataGridTableStyle1.ColumnHeadersVisible.ToString();
            if (myDataGridTableStyle1.ColumnHeadersVisible == true)
            {
                btnheader.Text = "Remove Header";
            }
            else
            {
                btnheader.Text = "Add Header";
            }
            AddCustomDataTableStyle();
        }
// <Snippet1>
// <Snippet2>
        private void DataGridTableStyle_Sample_Load(object sender,
                                                    EventArgs e)
        {
            myDataGridTableStyle1 = new DataGridTableStyle();

            mylabel.Text = "Sorting Status :" +
                           myDataGridTableStyle1.AllowSorting.ToString();
            if (myDataGridTableStyle1.AllowSorting == true)
            {
                btnApplyStyles.Text = "Remove Sorting";
            }
            else
            {
                btnApplyStyles.Text = "Apply Sorting";
            }
            // Attach custom event handlers.
            myDataGridTableStyle1.AllowSortingChanged +=
                new System.EventHandler(AllowSortingChanged_Handler);
            myDataGridTableStyle1.MappingName = "Customers";
        }
Пример #45
0
        private void treeView1_DoubleClick(object sender, System.EventArgs e)
        {
            System.Windows.Forms.DataGridTableStyle dgstyle = null;

            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            setVisibleFalse();
            int counts = this.treeView1.Nodes.Count;

            foreach (TJSystem.Classes.PriTreeNode tnSubP in this.treeView1.Nodes)
            {
                foreach (TJSystem.Classes.PriTreeNode tn in tnSubP.Nodes)
                {
                    counts = tn.Nodes.Count;
                    if (tn.IsSelected && tn.GetNodeCount(true) == 0)
                    {
                        this.dataGrid1.CaptionText = tn.Text.Trim();
                        sb.Append("select a.parent_hs_code,a.hs_code,a.item_name,a.unit,b.unit_name_cn as unit_name_cn,a.backtaxrate,a.comtaxrate,a.exptaxrate,");
                        sb.Append("a.consumetaxrate,a.addtaxrate,a.remark,a.watchcert ");
                        sb.Append("from p_hscode a ");
                        sb.Append("left join p_unit b on a.unit=b.unit_id ");
                        sb.Append("where substring(a.hs_code ,1,2)='");
                        sb.Append(tn.Text.Substring(0, 3).Trim());
                        sb.Append("' ");
                        sb.Append("order by a.hs_code");
                    }
                }
            }
            if (this.dgsty1 == null && sb.ToString().Length > 0)
            {
                return;
            }
            this.InitialGrid(sb.ToString(), dgsty1);
            priToolBar2.setCurrentForm = this;
            _PK    = this.txt1.DataField;
            _table = dgsty1.MappingName;
            priToolBar2.Initial(_table, _PK, sb.ToString());
            priToolBar2.BeforeButtonClickEvent += new TJSystem.UC.PriToolBar.BeforeButotnClick(this.BeforeButtonClick);
            priToolBar2.AfterButtonClickEvent  += new TJSystem.UC.PriToolBar.AfterButtonClick(this.AfterButtonClick);
        }
 private void myButton_Click(object sender, System.EventArgs e)
 {
     try
     {
         if (myColWidth.Text != "")
         {
             int newwidth = myDataGridTableStyle.PreferredColumnWidth =
                 int.Parse(myColWidth.Text);
             // Dispose datagrid and datagridtablestyle and then create.
             myDataGrid.Dispose();
             myDataGridTableStyle.Dispose();
             myDataGrid            = new DataGrid();
             myDataGridTableStyle  = new DataGridTableStyle();
             myDataGrid.DataMember = "";
             myDataGrid.Location   = new System.Drawing.Point(72, 32);
             myDataGrid.Name       = "myDataGrid";
             myDataGrid.Size       = new System.Drawing.Size(240, 200);
             myDataGrid.TabIndex   = 4;
             Controls.Add(myDataGrid);
             CreateAndBindDataSet(myDataGrid);
             myDataGridTableStyle.MappingName = "Employee";
             // Set other properties.
             myDataGridTableStyle.AlternatingBackColor = Color.LightGray;
             // Add DataGridTableStyle instances to GridTableStylesCollection.
             myDataGridTableStyle.PreferredColumnWidth = newwidth;
             myColWidth.Text = "";
             myDataGrid.TableStyles.Add(myDataGridTableStyle);
             myDataGridTableStyle.PreferredColumnWidthChanged +=
                 new EventHandler(MyDelegatePreferredColWidthChanged);
         }
         else
         {
             MessageBox.Show("Please enter a number");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #47
0
        /// <summary>
        /// 初始化mydataGrid网格
        /// </summary>
        /// <param name="myDataGrid"></param>
        /// <param name="e"></param>
        /// <param name="TableName"></param>
        public static void CsDataGrid(myDataGrid.myDataGrid myDataGrid, System.Windows.Forms.DataGridTableStyle e, string TableName)
        {
            DataTable myTb = new DataTable();

            myTb.TableName = TableName;
            for (int i = 0; i <= e.GridColumnStyles.Count - 1; i++)
            {
                if (e.GridColumnStyles[i].GetType().ToString() == "System.Windows.Forms.DataGridBoolColumn")
                {
                    myTb.Columns.Add(e.GridColumnStyles[i].HeaderText, Type.GetType("System.Int16"));
                }
                else
                {
                    myTb.Columns.Add(e.GridColumnStyles[i].HeaderText, Type.GetType("System.String"));
                }

                e.GridColumnStyles[i].MappingName = e.GridColumnStyles[i].HeaderText;
                e.GridColumnStyles[i].NullText    = "";
            }
            myDataGrid.DataSource = myTb;
            e.MappingName         = TableName;
        }
Пример #48
0
        protected void EnToCh(string strChinese, string strWidth, DataTable dt, System.Windows.Forms.DataGrid dg)
        {
            if (dt != null)
            {
                int      col_count = 0;
                string[] str       = strChinese.Split(',');
                string[] wid       = strWidth.Split(',');
                System.Windows.Forms.DataGridTableStyle t_style = new System.Windows.Forms.DataGridTableStyle();
                t_style.MappingName = dt.TableName;
                System.Windows.Forms.DataGridColumnStyle[] c_style = new System.Windows.Forms.DataGridColumnStyle[str.Length];
                dg.TableStyles.Clear();
                col_count = (str.Length < dt.Columns.Count)?str.Length:dt.Columns.Count;
                for (int i = 0; i < col_count; i++)
                {
                    c_style[i]             = new System.Windows.Forms.DataGridTextBoxColumn();
                    c_style[i].MappingName = dt.Columns[i].ColumnName;
                    c_style[i].HeaderText  = (str[i] != "")?str[i]:dt.Columns[i].ColumnName;
                    if (i < wid.Length && wid[i] != "")
                    {
                        c_style[i].Width = Convert.ToInt32(wid[i]);
                    }
                    t_style.GridColumnStyles.Add(c_style[i]);
                }
                t_style.AlternatingBackColor = System.Drawing.Color.WhiteSmoke;
                t_style.BackColor            = System.Drawing.Color.White;
                t_style.GridLineColor        = System.Drawing.Color.LightSkyBlue;
                t_style.HeaderBackColor      = Color.Gainsboro;
                t_style.HeaderForeColor      = System.Drawing.SystemColors.ControlText;
                t_style.SelectionBackColor   = System.Drawing.SystemColors.Info;
                t_style.SelectionForeColor   = Color.Blue;

                dg.Capture = true;

                dg.TableStyles.Add(t_style);
                dg.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
                dg.ReadOnly    = true;
            }
        }
Пример #49
0
 private void InitializeComponent()
 {
     this.dtsGrid   = new System.Data.DataSet();
     this.m_dtbGrid = new System.Data.DataTable();
     this.m_dgsBase = new System.Windows.Forms.DataGridTableStyle();
     ((System.ComponentModel.ISupportInitialize)(this.dtsGrid)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_dtbGrid)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // dtsGrid
     //
     this.dtsGrid.DataSetName = "TempData";
     this.dtsGrid.Locale      = new System.Globalization.CultureInfo("zh-CN");
     this.dtsGrid.Tables.AddRange(new System.Data.DataTable[] {
         this.m_dtbGrid
     });
     //
     // m_dtbGrid
     //
     this.m_dtbGrid.TableName = "DataContainer";
     //
     // m_dgsBase
     //
     this.m_dgsBase.DataGrid        = this;
     this.m_dgsBase.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.m_dgsBase.MappingName     = "DataContainer";
     //
     // ctlDataGridBaseTool
     //
     this.DataSource = this.m_dtbGrid;
     this.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.m_dgsBase
     });
     ((System.ComponentModel.ISupportInitialize)(this.dtsGrid)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_dtbGrid)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }
Пример #50
0
        private void OnUIACollectionChanged(object sender, CollectionChangeEventArgs args)
        {
            if (lastCurrencyManager == null || args.Action == CollectionChangeAction.Refresh)
            {
                return;
            }

            // FIXME: Remove CurrentTableStyle property after committing SWF patch
            SWF.DataGridTableStyle tableStyle = CurrentTableStyle;
            CreateHeader(tableStyle);

            if (args.Action == CollectionChangeAction.Add)
            {
                if (tableStyle.GridColumnStyles.Count == 0)
                {
                    return;
                }

                for (int index = items.Count; index < lastCurrencyManager.Count; index++)
                {
                    CreateListItem(index, tableStyle);
                }
            }
            else if (args.Action == CollectionChangeAction.Remove)
            {
                // TODO: Is there a better way to do this?
                int toRemove = items.Count - lastCurrencyManager.Count;
                while (toRemove > 0)
                {
                    ListItemProvider item = items [items.Count - 1];
                    RemoveChildProvider(item);
                    item.Terminate();
                    items.Remove(item);
                    toRemove--;
                }
            }
        }
Пример #51
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     System.Resources.ResourceManager       resources = new System.Resources.ResourceManager(typeof(AccountStates_Banks));
     this.panel3                 = new System.Windows.Forms.Panel();
     this.dataGrid1              = new System.Windows.Forms.DataGrid();
     this.dataView1              = new System.Data.DataView();
     this.dsBankAccountsStates1  = new BPS.BLL.Accounts.DataSets.dsBankAccountsStates();
     this.dataGridTableStyle1    = new System.Windows.Forms.DataGridTableStyle();
     this.ColumnAccountID        = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnOrgName          = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnSaldo            = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnCurrencyID       = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnRAccount         = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnBankName         = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnKAccount         = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnCityName         = new System.Windows.Forms.DataGridTextBoxColumn();
     this.sqlDataAdapter1        = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand1      = new System.Data.SqlClient.SqlCommand();
     this.sqlConnection1         = new System.Data.SqlClient.SqlConnection();
     this.mainMenu1              = new System.Windows.Forms.MainMenu();
     this.menuItem1              = new System.Windows.Forms.MenuItem();
     this.mnuRefresh             = new System.Windows.Forms.MenuItem();
     this.groupBox1              = new System.Windows.Forms.GroupBox();
     this.toolBar1               = new System.Windows.Forms.ToolBar();
     this.tbbStore               = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton1         = new System.Windows.Forms.ToolBarButton();
     this.tbbRefresh             = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton7         = new System.Windows.Forms.ToolBarButton();
     this.tbbApply               = new System.Windows.Forms.ToolBarButton();
     this.tbbReset               = new System.Windows.Forms.ToolBarButton();
     this.tbbClear               = new System.Windows.Forms.ToolBarButton();
     this.imageList1             = new System.Windows.Forms.ImageList(this.components);
     this.daSetSaldo             = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlDeleteCommand1      = new System.Data.SqlClient.SqlCommand();
     this.sqlInsertCommand1      = new System.Data.SqlClient.SqlCommand();
     this.sqlUpdateCommand1      = new System.Data.SqlClient.SqlCommand();
     this.panel3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsBankAccountsStates1)).BeginInit();
     this.SuspendLayout();
     //
     // panel3
     //
     this.panel3.Controls.Add(this.dataGrid1);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel3.Location = new System.Drawing.Point(0, 71);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(926, 430);
     this.panel3.TabIndex = 2;
     //
     // dataGrid1
     //
     this.dataGrid1.CaptionVisible  = false;
     this.dataGrid1.DataMember      = "";
     this.dataGrid1.DataSource      = this.dataView1;
     this.dataGrid1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGrid1.Location        = new System.Drawing.Point(0, 0);
     this.dataGrid1.Name            = "dataGrid1";
     this.dataGrid1.Size            = new System.Drawing.Size(926, 430);
     this.dataGrid1.TabIndex        = 0;
     this.dataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1
     });
     //
     // dataView1
     //
     this.dataView1.AllowDelete = false;
     this.dataView1.AllowNew    = false;
     this.dataView1.Sort        = "OrgName";
     this.dataView1.Table       = this.dsBankAccountsStates1.Orgs;
     //
     // dsBankAccountsStates1
     //
     this.dsBankAccountsStates1.DataSetName = "dsBankAccountsStates";
     this.dsBankAccountsStates1.Locale      = new System.Globalization.CultureInfo("ru-RU");
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.DataGrid = this.dataGrid1;
     this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.ColumnAccountID,
         this.ColumnOrgName,
         this.ColumnSaldo,
         this.dataGridTextBoxColumn1,
         this.dataGridTextBoxColumn2,
         this.dataGridTextBoxColumn3,
         this.ColumnCurrencyID,
         this.ColumnRAccount,
         this.ColumnBankName,
         this.ColumnKAccount,
         this.ColumnCityName
     });
     this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle1.MappingName     = "Orgs";
     //
     // ColumnAccountID
     //
     this.ColumnAccountID.Format      = "00000";
     this.ColumnAccountID.FormatInfo  = null;
     this.ColumnAccountID.HeaderText  = "ID";
     this.ColumnAccountID.MappingName = "AccountID";
     this.ColumnAccountID.NullText    = "-";
     this.ColumnAccountID.ReadOnly    = true;
     this.ColumnAccountID.Width       = 45;
     //
     // ColumnOrgName
     //
     this.ColumnOrgName.Format      = "";
     this.ColumnOrgName.FormatInfo  = null;
     this.ColumnOrgName.HeaderText  = "Организация";
     this.ColumnOrgName.MappingName = "OrgName";
     this.ColumnOrgName.NullText    = "-";
     this.ColumnOrgName.ReadOnly    = true;
     this.ColumnOrgName.Width       = 170;
     //
     // ColumnSaldo
     //
     this.ColumnSaldo.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.ColumnSaldo.Format      = "#,##0.00;;\"-\"";
     this.ColumnSaldo.FormatInfo  = null;
     this.ColumnSaldo.HeaderText  = "Сальдо";
     this.ColumnSaldo.MappingName = "Saldo";
     this.ColumnSaldo.NullText    = "-";
     this.ColumnSaldo.ReadOnly    = true;
     this.ColumnSaldo.Width       = 90;
     //
     // dataGridTextBoxColumn1
     //
     this.dataGridTextBoxColumn1.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.dataGridTextBoxColumn1.Format      = "#,##0.00;;\"-\"";
     this.dataGridTextBoxColumn1.FormatInfo  = null;
     this.dataGridTextBoxColumn1.HeaderText  = "Зарезервировано";
     this.dataGridTextBoxColumn1.MappingName = "SumReserved";
     this.dataGridTextBoxColumn1.ReadOnly    = true;
     this.dataGridTextBoxColumn1.Width       = 90;
     //
     // dataGridTextBoxColumn2
     //
     this.dataGridTextBoxColumn2.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.dataGridTextBoxColumn2.Format      = "#,##0.00;;\"-\"";
     this.dataGridTextBoxColumn2.FormatInfo  = null;
     this.dataGridTextBoxColumn2.HeaderText  = "Ожидается";
     this.dataGridTextBoxColumn2.MappingName = "SumWaited";
     this.dataGridTextBoxColumn2.ReadOnly    = true;
     this.dataGridTextBoxColumn2.Width       = 90;
     //
     // dataGridTextBoxColumn3
     //
     this.dataGridTextBoxColumn3.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.dataGridTextBoxColumn3.Format      = "#,##0.00;;\"-\"";
     this.dataGridTextBoxColumn3.FormatInfo  = null;
     this.dataGridTextBoxColumn3.HeaderText  = "Свободно";
     this.dataGridTextBoxColumn3.MappingName = "DisposableSum";
     this.dataGridTextBoxColumn3.ReadOnly    = true;
     this.dataGridTextBoxColumn3.Width       = 90;
     //
     // ColumnCurrencyID
     //
     this.ColumnCurrencyID.Format      = "";
     this.ColumnCurrencyID.FormatInfo  = null;
     this.ColumnCurrencyID.HeaderText  = "Валюта";
     this.ColumnCurrencyID.MappingName = "CurrencyID";
     this.ColumnCurrencyID.NullText    = "-";
     this.ColumnCurrencyID.ReadOnly    = true;
     this.ColumnCurrencyID.Width       = 40;
     //
     // ColumnRAccount
     //
     this.ColumnRAccount.Format      = "";
     this.ColumnRAccount.FormatInfo  = null;
     this.ColumnRAccount.HeaderText  = "Расчётный Счёт";
     this.ColumnRAccount.MappingName = "RAccount";
     this.ColumnRAccount.NullText    = "-";
     this.ColumnRAccount.ReadOnly    = true;
     this.ColumnRAccount.Width       = 120;
     //
     // ColumnBankName
     //
     this.ColumnBankName.Format      = "";
     this.ColumnBankName.FormatInfo  = null;
     this.ColumnBankName.HeaderText  = "Банк";
     this.ColumnBankName.MappingName = "BankName";
     this.ColumnBankName.NullText    = "-";
     this.ColumnBankName.ReadOnly    = true;
     this.ColumnBankName.Width       = 75;
     //
     // ColumnKAccount
     //
     this.ColumnKAccount.Format      = "";
     this.ColumnKAccount.FormatInfo  = null;
     this.ColumnKAccount.HeaderText  = "Корреспондирующий Счёт";
     this.ColumnKAccount.MappingName = "KAccount";
     this.ColumnKAccount.NullText    = "-";
     this.ColumnKAccount.ReadOnly    = true;
     this.ColumnKAccount.Width       = 120;
     //
     // ColumnCityName
     //
     this.ColumnCityName.Format      = "";
     this.ColumnCityName.FormatInfo  = null;
     this.ColumnCityName.HeaderText  = "Город";
     this.ColumnCityName.MappingName = "CityName";
     this.ColumnCityName.NullText    = "-";
     this.ColumnCityName.ReadOnly    = true;
     this.ColumnCityName.Width       = 75;
     //
     // sqlDataAdapter1
     //
     this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;
     this.sqlDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "OrgAccountsBalances", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("OrgName", "OrgName"),
             new System.Data.Common.DataColumnMapping("RAccount", "RAccount"),
             new System.Data.Common.DataColumnMapping("BankName", "BankName"),
             new System.Data.Common.DataColumnMapping("KAccount", "KAccount"),
             new System.Data.Common.DataColumnMapping("CityName", "CityName"),
             new System.Data.Common.DataColumnMapping("Saldo", "Saldo"),
             new System.Data.Common.DataColumnMapping("CurrencyID", "CurrencyID"),
             new System.Data.Common.DataColumnMapping("AccountID", "AccountID"),
             new System.Data.Common.DataColumnMapping("BankID", "BankID"),
             new System.Data.Common.DataColumnMapping("CityID", "CityID"),
             new System.Data.Common.DataColumnMapping("OrgsAccountsID", "OrgsAccountsID"),
             new System.Data.Common.DataColumnMapping("OrgID", "OrgID"),
             new System.Data.Common.DataColumnMapping("SumReserved", "SumReserved"),
             new System.Data.Common.DataColumnMapping("SumWaited", "SumWaited"),
             new System.Data.Common.DataColumnMapping("DisposableSum", "DisposableSum")
         })
     });
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "[SelAccounts_OurOrgs]";
     this.sqlSelectCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlSelectCommand1.Connection  = this.sqlConnection1;
     this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     //
     // sqlConnection1
     //
     this.sqlConnection1.ConnectionString = ((string)(configurationAppSettings.GetValue("ConnectionString", typeof(string))));
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuRefresh
     });
     this.menuItem1.MergeOrder = 1;
     this.menuItem1.Text       = "Вид";
     //
     // mnuRefresh
     //
     this.mnuRefresh.Index    = 0;
     this.mnuRefresh.Shortcut = System.Windows.Forms.Shortcut.F5;
     this.mnuRefresh.Text     = "Обновить";
     this.mnuRefresh.Click   += new System.EventHandler(this.mnuRefresh_Click);
     //
     // groupBox1
     //
     this.groupBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.groupBox1.Location = new System.Drawing.Point(0, 28);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(926, 43);
     this.groupBox1.TabIndex = 3;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Фильтр";
     this.groupBox1.Visible  = false;
     //
     // toolBar1
     //
     this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.tbbStore,
         this.toolBarButton1,
         this.tbbRefresh,
         this.toolBarButton7,
         this.tbbApply,
         this.tbbReset,
         this.tbbClear
     });
     this.toolBar1.ButtonSize     = new System.Drawing.Size(90, 22);
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.ImageList      = this.imageList1;
     this.toolBar1.Location       = new System.Drawing.Point(0, 0);
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(926, 28);
     this.toolBar1.TabIndex       = 1;
     this.toolBar1.TextAlign      = System.Windows.Forms.ToolBarTextAlign.Right;
     this.toolBar1.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
     //
     // tbbStore
     //
     this.tbbStore.ImageIndex = 4;
     this.tbbStore.Text       = "Сохранить";
     //
     // toolBarButton1
     //
     this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // tbbRefresh
     //
     this.tbbRefresh.ImageIndex = 2;
     this.tbbRefresh.Text       = "Обновить";
     //
     // toolBarButton7
     //
     this.toolBarButton7.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // tbbApply
     //
     this.tbbApply.ImageIndex = 6;
     this.tbbApply.Text       = "Выбрать";
     //
     // tbbReset
     //
     this.tbbReset.ImageIndex = 7;
     this.tbbReset.Text       = "Cбросить";
     //
     // tbbClear
     //
     this.tbbClear.ImageIndex = 5;
     this.tbbClear.Text       = "Очистить";
     //
     // imageList1
     //
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // daSetSaldo
     //
     this.daSetSaldo.DeleteCommand = this.sqlDeleteCommand1;
     this.daSetSaldo.InsertCommand = this.sqlInsertCommand1;
     this.daSetSaldo.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Accounts", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("AccountID", "AccountID"),
             new System.Data.Common.DataColumnMapping("Saldo", "Saldo")
         })
     });
     this.daSetSaldo.UpdateCommand = this.sqlUpdateCommand1;
     //
     // sqlDeleteCommand1
     //
     this.sqlDeleteCommand1.CommandText = "DELETE FROM Accounts WHERE (AccountID = @Original_AccountID) AND (Saldo = @Origin" +
                                          "al_Saldo)";
     this.sqlDeleteCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlDeleteCommand1.Connection  = this.sqlConnection1;
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(0)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_AccountID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "AccountID", System.Data.DataRowVersion.Original, null));
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Saldo", System.Data.SqlDbType.Float, 8, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Saldo", System.Data.DataRowVersion.Original, null));
     //
     // sqlInsertCommand1
     //
     this.sqlInsertCommand1.CommandText = "INSERT INTO Accounts(Saldo) VALUES (@Saldo); SELECT AccountID, Saldo FROM Account" +
                                          "s WHERE (AccountID = @@IDENTITY)";
     this.sqlInsertCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlInsertCommand1.Connection  = this.sqlConnection1;
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(0)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Saldo", System.Data.SqlDbType.Float, 8, "Saldo"));
     //
     // sqlUpdateCommand1
     //
     this.sqlUpdateCommand1.CommandText = "[SetSaldo]";
     this.sqlUpdateCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlUpdateCommand1.Connection  = this.sqlConnection1;
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(0)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Saldo", System.Data.SqlDbType.Float, 8, "Saldo"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_AccountID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "AccountID", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Saldo", System.Data.SqlDbType.Float, 8, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Saldo", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@AccountID", System.Data.SqlDbType.Int, 4, "AccountID"));
     //
     // AccountStates_Banks
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize        = new System.Drawing.Size(926, 501);
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.toolBar1);
     this.Font        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Menu        = this.mainMenu1;
     this.Name        = "AccountStates_Banks";
     this.Text        = "Состояние Расчётных Счетов";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Closing    += new System.ComponentModel.CancelEventHandler(this.AccountStates_Banks_Closing);
     this.panel3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsBankAccountsStates1)).EndInit();
     this.ResumeLayout(false);
 }
Пример #52
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1               = new System.Windows.Forms.GroupBox();
     this.cmbyjks                 = new System.Windows.Forms.ComboBox();
     this.label3                  = new System.Windows.Forms.Label();
     this.rdo2                    = new System.Windows.Forms.RadioButton();
     this.rdo1                    = new System.Windows.Forms.RadioButton();
     this.butprint                = new System.Windows.Forms.Button();
     this.butref                  = new System.Windows.Forms.Button();
     this.button2                 = new System.Windows.Forms.Button();
     this.cmbyplx                 = new System.Windows.Forms.ComboBox();
     this.label2                  = new System.Windows.Forms.Label();
     this.groupBox2               = new System.Windows.Forms.GroupBox();
     this.myDataGrid1             = new myDataGrid.myDataGrid();
     this.dataGridTableStyle1     = new System.Windows.Forms.DataGridTableStyle();
     this.dataGridTextBoxColumn1  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn2  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn3  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn4  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn10 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn9  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn5  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn7  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn6  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn8  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn23 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn24 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTableStyle2     = new System.Windows.Forms.DataGridTableStyle();
     this.dataGridTextBoxColumn11 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn12 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn13 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn14 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn15 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn16 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn17 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn18 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn19 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn20 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn21 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn22 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.statusBar1              = new System.Windows.Forms.StatusBar();
     this.statusBarPanel1         = new System.Windows.Forms.StatusBarPanel();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.cmbyjks);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.rdo2);
     this.groupBox1.Controls.Add(this.rdo1);
     this.groupBox1.Controls.Add(this.butprint);
     this.groupBox1.Controls.Add(this.butref);
     this.groupBox1.Controls.Add(this.button2);
     this.groupBox1.Controls.Add(this.cmbyplx);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.groupBox1.Location = new System.Drawing.Point(0, 0);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(864, 67);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "查询";
     //
     // cmbyjks
     //
     this.cmbyjks.DropDownStyle             = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbyjks.Location                  = new System.Drawing.Point(76, 23);
     this.cmbyjks.Name                      = "cmbyjks";
     this.cmbyjks.Size                      = new System.Drawing.Size(116, 20);
     this.cmbyjks.TabIndex                  = 19;
     this.cmbyjks.SelectionChangeCommitted += new System.EventHandler(this.cmbyjks_SelectionChangeCommitted);
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(12, 26);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(66, 16);
     this.label3.TabIndex = 18;
     this.label3.Text     = "药剂科室";
     //
     // rdo2
     //
     this.rdo2.Location        = new System.Drawing.Point(383, 38);
     this.rdo2.Name            = "rdo2";
     this.rdo2.Size            = new System.Drawing.Size(168, 23);
     this.rdo2.TabIndex        = 17;
     this.rdo2.Text            = "列出高于上限的库存药品";
     this.rdo2.CheckedChanged += new System.EventHandler(this.rdo2_CheckedChanged);
     //
     // rdo1
     //
     this.rdo1.Checked         = true;
     this.rdo1.Location        = new System.Drawing.Point(384, 18);
     this.rdo1.Name            = "rdo1";
     this.rdo1.Size            = new System.Drawing.Size(168, 24);
     this.rdo1.TabIndex        = 16;
     this.rdo1.TabStop         = true;
     this.rdo1.Text            = "列出低于下限的库存药品";
     this.rdo1.CheckedChanged += new System.EventHandler(this.rdo2_CheckedChanged);
     //
     // butprint
     //
     this.butprint.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.butprint.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
     this.butprint.Location  = new System.Drawing.Point(641, 24);
     this.butprint.Name      = "butprint";
     this.butprint.Size      = new System.Drawing.Size(72, 23);
     this.butprint.TabIndex  = 15;
     this.butprint.Text      = "打印(&P)";
     this.butprint.Click    += new System.EventHandler(this.butprint_Click);
     //
     // butref
     //
     this.butref.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.butref.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
     this.butref.Location  = new System.Drawing.Point(563, 24);
     this.butref.Name      = "butref";
     this.butref.Size      = new System.Drawing.Size(72, 23);
     this.butref.TabIndex  = 13;
     this.butref.Text      = "查询(&F)";
     this.butref.Click    += new System.EventHandler(this.butref_Click);
     //
     // button2
     //
     this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
     this.button2.Location  = new System.Drawing.Point(720, 24);
     this.button2.Name      = "button2";
     this.button2.Size      = new System.Drawing.Size(72, 23);
     this.button2.TabIndex  = 14;
     this.button2.Text      = "退出(&Q)";
     this.button2.Click    += new System.EventHandler(this.button2_Click);
     //
     // cmbyplx
     //
     this.cmbyplx.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbyplx.Location      = new System.Drawing.Point(257, 24);
     this.cmbyplx.Name          = "cmbyplx";
     this.cmbyplx.Size          = new System.Drawing.Size(113, 20);
     this.cmbyplx.TabIndex      = 11;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(193, 26);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(84, 20);
     this.label2.TabIndex = 10;
     this.label2.Text     = "药品类型";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.myDataGrid1);
     this.groupBox2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.groupBox2.Location = new System.Drawing.Point(0, 67);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(864, 442);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "查询结果";
     //
     // myDataGrid1
     //
     this.myDataGrid1.BackgroundColor = System.Drawing.Color.White;
     this.myDataGrid1.CaptionVisible  = false;
     this.myDataGrid1.DataMember      = "";
     this.myDataGrid1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.myDataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.myDataGrid1.Location        = new System.Drawing.Point(3, 17);
     this.myDataGrid1.Name            = "myDataGrid1";
     this.myDataGrid1.Size            = new System.Drawing.Size(858, 422);
     this.myDataGrid1.TabIndex        = 0;
     this.myDataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1,
         this.dataGridTableStyle2
     });
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.DataGrid = this.myDataGrid1;
     this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.dataGridTextBoxColumn1,
         this.dataGridTextBoxColumn2,
         this.dataGridTextBoxColumn3,
         this.dataGridTextBoxColumn4,
         this.dataGridTextBoxColumn10,
         this.dataGridTextBoxColumn9,
         this.dataGridTextBoxColumn5,
         this.dataGridTextBoxColumn7,
         this.dataGridTextBoxColumn6,
         this.dataGridTextBoxColumn8,
         this.dataGridTextBoxColumn23,
         this.dataGridTextBoxColumn24
     });
     this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle1.ReadOnly        = true;
     //
     // dataGridTextBoxColumn1
     //
     this.dataGridTextBoxColumn1.Format     = "";
     this.dataGridTextBoxColumn1.FormatInfo = null;
     this.dataGridTextBoxColumn1.HeaderText = "序号";
     this.dataGridTextBoxColumn1.Width      = 30;
     //
     // dataGridTextBoxColumn2
     //
     this.dataGridTextBoxColumn2.Format     = "";
     this.dataGridTextBoxColumn2.FormatInfo = null;
     this.dataGridTextBoxColumn2.HeaderText = "品名";
     this.dataGridTextBoxColumn2.Width      = 150;
     //
     // dataGridTextBoxColumn3
     //
     this.dataGridTextBoxColumn3.Format     = "";
     this.dataGridTextBoxColumn3.FormatInfo = null;
     this.dataGridTextBoxColumn3.HeaderText = "规格";
     this.dataGridTextBoxColumn3.Width      = 75;
     //
     // dataGridTextBoxColumn4
     //
     this.dataGridTextBoxColumn4.Format     = "";
     this.dataGridTextBoxColumn4.FormatInfo = null;
     this.dataGridTextBoxColumn4.HeaderText = "厂家";
     this.dataGridTextBoxColumn4.Width      = 75;
     //
     // dataGridTextBoxColumn10
     //
     this.dataGridTextBoxColumn10.Format     = "";
     this.dataGridTextBoxColumn10.FormatInfo = null;
     this.dataGridTextBoxColumn10.HeaderText = "批发价";
     this.dataGridTextBoxColumn10.Width      = 60;
     //
     // dataGridTextBoxColumn9
     //
     this.dataGridTextBoxColumn9.Format     = "";
     this.dataGridTextBoxColumn9.FormatInfo = null;
     this.dataGridTextBoxColumn9.HeaderText = "零售价";
     this.dataGridTextBoxColumn9.Width      = 60;
     //
     // dataGridTextBoxColumn5
     //
     this.dataGridTextBoxColumn5.Format     = "";
     this.dataGridTextBoxColumn5.FormatInfo = null;
     this.dataGridTextBoxColumn5.HeaderText = "下限";
     this.dataGridTextBoxColumn5.Width      = 70;
     //
     // dataGridTextBoxColumn7
     //
     this.dataGridTextBoxColumn7.Format     = "";
     this.dataGridTextBoxColumn7.FormatInfo = null;
     this.dataGridTextBoxColumn7.HeaderText = "库存量";
     this.dataGridTextBoxColumn7.Width      = 70;
     //
     // dataGridTextBoxColumn6
     //
     this.dataGridTextBoxColumn6.Format     = "";
     this.dataGridTextBoxColumn6.FormatInfo = null;
     this.dataGridTextBoxColumn6.HeaderText = "低于下限";
     this.dataGridTextBoxColumn6.Width      = 70;
     //
     // dataGridTextBoxColumn8
     //
     this.dataGridTextBoxColumn8.Format     = "";
     this.dataGridTextBoxColumn8.FormatInfo = null;
     this.dataGridTextBoxColumn8.HeaderText = "单位";
     this.dataGridTextBoxColumn8.Width      = 30;
     //
     // dataGridTextBoxColumn23
     //
     this.dataGridTextBoxColumn23.Format     = "";
     this.dataGridTextBoxColumn23.FormatInfo = null;
     this.dataGridTextBoxColumn23.HeaderText = "货号";
     this.dataGridTextBoxColumn23.Width      = 60;
     //
     // dataGridTextBoxColumn24
     //
     this.dataGridTextBoxColumn24.Format     = "";
     this.dataGridTextBoxColumn24.FormatInfo = null;
     this.dataGridTextBoxColumn24.HeaderText = "cjid";
     this.dataGridTextBoxColumn24.Width      = 0;
     //
     // dataGridTableStyle2
     //
     this.dataGridTableStyle2.DataGrid = this.myDataGrid1;
     this.dataGridTableStyle2.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.dataGridTextBoxColumn11,
         this.dataGridTextBoxColumn12,
         this.dataGridTextBoxColumn13,
         this.dataGridTextBoxColumn14,
         this.dataGridTextBoxColumn15,
         this.dataGridTextBoxColumn16,
         this.dataGridTextBoxColumn17,
         this.dataGridTextBoxColumn18,
         this.dataGridTextBoxColumn19,
         this.dataGridTextBoxColumn20,
         this.dataGridTextBoxColumn21,
         this.dataGridTextBoxColumn22
     });
     this.dataGridTableStyle2.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle2.ReadOnly        = true;
     //
     // dataGridTextBoxColumn11
     //
     this.dataGridTextBoxColumn11.Format     = "";
     this.dataGridTextBoxColumn11.FormatInfo = null;
     this.dataGridTextBoxColumn11.HeaderText = "序号";
     this.dataGridTextBoxColumn11.Width      = 30;
     //
     // dataGridTextBoxColumn12
     //
     this.dataGridTextBoxColumn12.Format     = "";
     this.dataGridTextBoxColumn12.FormatInfo = null;
     this.dataGridTextBoxColumn12.HeaderText = "品名";
     this.dataGridTextBoxColumn12.Width      = 150;
     //
     // dataGridTextBoxColumn13
     //
     this.dataGridTextBoxColumn13.Format     = "";
     this.dataGridTextBoxColumn13.FormatInfo = null;
     this.dataGridTextBoxColumn13.HeaderText = "规格";
     this.dataGridTextBoxColumn13.Width      = 75;
     //
     // dataGridTextBoxColumn14
     //
     this.dataGridTextBoxColumn14.Format     = "";
     this.dataGridTextBoxColumn14.FormatInfo = null;
     this.dataGridTextBoxColumn14.HeaderText = "厂家";
     this.dataGridTextBoxColumn14.Width      = 75;
     //
     // dataGridTextBoxColumn15
     //
     this.dataGridTextBoxColumn15.Format     = "";
     this.dataGridTextBoxColumn15.FormatInfo = null;
     this.dataGridTextBoxColumn15.HeaderText = "批发价";
     this.dataGridTextBoxColumn15.Width      = 60;
     //
     // dataGridTextBoxColumn16
     //
     this.dataGridTextBoxColumn16.Format     = "";
     this.dataGridTextBoxColumn16.FormatInfo = null;
     this.dataGridTextBoxColumn16.HeaderText = "零售价";
     this.dataGridTextBoxColumn16.Width      = 60;
     //
     // dataGridTextBoxColumn17
     //
     this.dataGridTextBoxColumn17.Format     = "";
     this.dataGridTextBoxColumn17.FormatInfo = null;
     this.dataGridTextBoxColumn17.HeaderText = "上限";
     this.dataGridTextBoxColumn17.Width      = 70;
     //
     // dataGridTextBoxColumn18
     //
     this.dataGridTextBoxColumn18.Format     = "";
     this.dataGridTextBoxColumn18.FormatInfo = null;
     this.dataGridTextBoxColumn18.HeaderText = "库存量";
     this.dataGridTextBoxColumn18.Width      = 70;
     //
     // dataGridTextBoxColumn19
     //
     this.dataGridTextBoxColumn19.Format     = "";
     this.dataGridTextBoxColumn19.FormatInfo = null;
     this.dataGridTextBoxColumn19.HeaderText = "高于上限";
     this.dataGridTextBoxColumn19.Width      = 70;
     //
     // dataGridTextBoxColumn20
     //
     this.dataGridTextBoxColumn20.Format     = "";
     this.dataGridTextBoxColumn20.FormatInfo = null;
     this.dataGridTextBoxColumn20.HeaderText = "单位";
     this.dataGridTextBoxColumn20.Width      = 30;
     //
     // dataGridTextBoxColumn21
     //
     this.dataGridTextBoxColumn21.Format     = "";
     this.dataGridTextBoxColumn21.FormatInfo = null;
     this.dataGridTextBoxColumn21.HeaderText = "货号";
     this.dataGridTextBoxColumn21.Width      = 60;
     //
     // dataGridTextBoxColumn22
     //
     this.dataGridTextBoxColumn22.Format     = "";
     this.dataGridTextBoxColumn22.FormatInfo = null;
     this.dataGridTextBoxColumn22.HeaderText = "CJID";
     this.dataGridTextBoxColumn22.Width      = 0;
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 484);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.statusBarPanel1
     });
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(864, 25);
     this.statusBar1.TabIndex   = 2;
     this.statusBar1.Text       = "statusBar1";
     //
     // statusBarPanel1
     //
     this.statusBarPanel1.Name  = "statusBarPanel1";
     this.statusBarPanel1.Width = 200;
     //
     // Frmkcgdcbj
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(864, 509);
     this.Controls.Add(this.statusBar1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Name        = "Frmkcgdcbj";
     this.Text        = "库存高低储报警";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load       += new System.EventHandler(this.Frmkcgdcbj_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
     this.ResumeLayout(false);
 }
Пример #53
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmInstruktori));
     this.gbPretraga              = new System.Windows.Forms.GroupBox();
     this.duPretraga              = new System.Windows.Forms.Button();
     this.cbPolje1                = new System.Windows.Forms.ComboBox();
     this.tbVrijednost1           = new System.Windows.Forms.TextBox();
     this.lbVrijednost2           = new System.Windows.Forms.Label();
     this.label2                  = new System.Windows.Forms.Label();
     this.pictureBox1             = new System.Windows.Forms.PictureBox();
     this.cbPolje                 = new System.Windows.Forms.ComboBox();
     this.tbVrijednost            = new System.Windows.Forms.TextBox();
     this.lbVrijednost1           = new System.Windows.Forms.Label();
     this.lbPolje                 = new System.Windows.Forms.Label();
     this.gbOpcije                = new System.Windows.Forms.GroupBox();
     this.duOdstampaj             = new System.Windows.Forms.Button();
     this.duOdaberiDnevnik        = new System.Windows.Forms.Button();
     this.duOdaberi               = new System.Windows.Forms.Button();
     this.duZatvori               = new System.Windows.Forms.Button();
     this.duIzbrisi               = new System.Windows.Forms.Button();
     this.duOsvjezi               = new System.Windows.Forms.Button();
     this.duIzmjeni               = new System.Windows.Forms.Button();
     this.duNovi                  = new System.Windows.Forms.Button();
     this.daInstruktori           = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand1       = new System.Data.SqlClient.SqlCommand();
     this.connInstruktori         = new System.Data.SqlClient.SqlConnection();
     this.dsInstruktori1          = new AutoSkola.DSetovi.dsInstruktori();
     this.dgInstruktori           = new System.Windows.Forms.DataGrid();
     this.dgTableStyleInstruktori = new System.Windows.Forms.DataGridTableStyle();
     this.ID              = new System.Windows.Forms.DataGridTextBoxColumn();
     this.Ime             = new System.Windows.Forms.DataGridTextBoxColumn();
     this.Prezime         = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DatumRodjenja   = new System.Windows.Forms.DataGridTextBoxColumn();
     this.Adresa          = new System.Windows.Forms.DataGridTextBoxColumn();
     this.Telefon         = new System.Windows.Forms.DataGridTextBoxColumn();
     this.Email           = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DatumZaposlenja = new System.Windows.Forms.DataGridTextBoxColumn();
     this.Testovi         = new System.Windows.Forms.DataGridBoolColumn();
     this.pictureBoxInst  = new System.Windows.Forms.PictureBox();
     this.gbPretraga.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.gbOpcije.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsInstruktori1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgInstruktori)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxInst)).BeginInit();
     this.SuspendLayout();
     //
     // gbPretraga
     //
     this.gbPretraga.Controls.Add(this.duPretraga);
     this.gbPretraga.Controls.Add(this.cbPolje1);
     this.gbPretraga.Controls.Add(this.tbVrijednost1);
     this.gbPretraga.Controls.Add(this.lbVrijednost2);
     this.gbPretraga.Controls.Add(this.label2);
     this.gbPretraga.Controls.Add(this.pictureBox1);
     this.gbPretraga.Controls.Add(this.cbPolje);
     this.gbPretraga.Controls.Add(this.tbVrijednost);
     this.gbPretraga.Controls.Add(this.lbVrijednost1);
     this.gbPretraga.Controls.Add(this.lbPolje);
     this.gbPretraga.Location = new System.Drawing.Point(8, 360);
     this.gbPretraga.Name     = "gbPretraga";
     this.gbPretraga.Size     = new System.Drawing.Size(599, 112);
     this.gbPretraga.TabIndex = 3;
     this.gbPretraga.TabStop  = false;
     this.gbPretraga.Text     = "        Pretraga";
     //
     // duPretraga
     //
     this.duPretraga.BackColor = System.Drawing.Color.Beige;
     this.duPretraga.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.duPretraga.Image     = ((System.Drawing.Image)(resources.GetObject("duPretraga.Image")));
     this.duPretraga.Location  = new System.Drawing.Point(540, 40);
     this.duPretraga.Name      = "duPretraga";
     this.duPretraga.Size      = new System.Drawing.Size(44, 44);
     this.duPretraga.TabIndex  = 9;
     this.duPretraga.UseVisualStyleBackColor = false;
     this.duPretraga.Click += new System.EventHandler(this.duPretraga_Click);
     //
     // cbPolje1
     //
     this.cbPolje1.Items.AddRange(new object[] {
         "Ime",
         "Prezime",
         "Adresa",
         "Telefon",
         "Email"
     });
     this.cbPolje1.Location              = new System.Drawing.Point(124, 72);
     this.cbPolje1.Name                  = "cbPolje1";
     this.cbPolje1.Size                  = new System.Drawing.Size(136, 24);
     this.cbPolje1.TabIndex              = 6;
     this.cbPolje1.Text                  = "Prezime";
     this.cbPolje1.SelectedValueChanged += new System.EventHandler(this.cbPolje1_SelectedValueChanged);
     //
     // tbVrijednost1
     //
     this.tbVrijednost1.Location     = new System.Drawing.Point(399, 72);
     this.tbVrijednost1.Name         = "tbVrijednost1";
     this.tbVrijednost1.Size         = new System.Drawing.Size(128, 22);
     this.tbVrijednost1.TabIndex     = 8;
     this.tbVrijednost1.TextChanged += new System.EventHandler(this.tbVrijednost1_TextChanged);
     //
     // lbVrijednost2
     //
     this.lbVrijednost2.Location = new System.Drawing.Point(275, 75);
     this.lbVrijednost2.Name     = "lbVrijednost2";
     this.lbVrijednost2.Size     = new System.Drawing.Size(114, 24);
     this.lbVrijednost2.TabIndex = 7;
     this.lbVrijednost2.Text     = "Prezime:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 72);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(112, 32);
     this.label2.TabIndex = 5;
     this.label2.Text     = "Odaberite polje 2:";
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(8, -1);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(24, 22);
     this.pictureBox1.TabIndex = 4;
     this.pictureBox1.TabStop  = false;
     //
     // cbPolje
     //
     this.cbPolje.Items.AddRange(new object[] {
         "Ime",
         "Prezime",
         "Adresa",
         "Telefon",
         "Email"
     });
     this.cbPolje.Location              = new System.Drawing.Point(124, 32);
     this.cbPolje.Name                  = "cbPolje";
     this.cbPolje.Size                  = new System.Drawing.Size(136, 24);
     this.cbPolje.TabIndex              = 0;
     this.cbPolje.Text                  = "Ime";
     this.cbPolje.SelectedValueChanged += new System.EventHandler(this.cbPolje_SelectedValueChanged);
     //
     // tbVrijednost
     //
     this.tbVrijednost.Location     = new System.Drawing.Point(399, 32);
     this.tbVrijednost.Name         = "tbVrijednost";
     this.tbVrijednost.Size         = new System.Drawing.Size(128, 22);
     this.tbVrijednost.TabIndex     = 1;
     this.tbVrijednost.TextChanged += new System.EventHandler(this.tbVrijednost_TextChanged);
     //
     // lbVrijednost1
     //
     this.lbVrijednost1.Location = new System.Drawing.Point(275, 33);
     this.lbVrijednost1.Name     = "lbVrijednost1";
     this.lbVrijednost1.Size     = new System.Drawing.Size(114, 24);
     this.lbVrijednost1.TabIndex = 1;
     this.lbVrijednost1.Text     = "Ime:";
     //
     // lbPolje
     //
     this.lbPolje.Location = new System.Drawing.Point(8, 32);
     this.lbPolje.Name     = "lbPolje";
     this.lbPolje.Size     = new System.Drawing.Size(112, 32);
     this.lbPolje.TabIndex = 0;
     this.lbPolje.Text     = "Odaberite polje 1:";
     //
     // gbOpcije
     //
     this.gbOpcije.Controls.Add(this.duOdstampaj);
     this.gbOpcije.Controls.Add(this.duOdaberiDnevnik);
     this.gbOpcije.Controls.Add(this.duOdaberi);
     this.gbOpcije.Controls.Add(this.duZatvori);
     this.gbOpcije.Controls.Add(this.duIzbrisi);
     this.gbOpcije.Controls.Add(this.duOsvjezi);
     this.gbOpcije.Controls.Add(this.duIzmjeni);
     this.gbOpcije.Controls.Add(this.duNovi);
     this.gbOpcije.Location = new System.Drawing.Point(615, 40);
     this.gbOpcije.Name     = "gbOpcije";
     this.gbOpcije.Size     = new System.Drawing.Size(136, 280);
     this.gbOpcije.TabIndex = 2;
     this.gbOpcije.TabStop  = false;
     this.gbOpcije.Text     = "Opcije";
     //
     // duOdstampaj
     //
     this.duOdstampaj.BackColor  = System.Drawing.Color.Beige;
     this.duOdstampaj.Cursor     = System.Windows.Forms.Cursors.Hand;
     this.duOdstampaj.FlatStyle  = System.Windows.Forms.FlatStyle.Popup;
     this.duOdstampaj.Image      = ((System.Drawing.Image)(resources.GetObject("duOdstampaj.Image")));
     this.duOdstampaj.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.duOdstampaj.Location   = new System.Drawing.Point(12, 192);
     this.duOdstampaj.Name       = "duOdstampaj";
     this.duOdstampaj.Size       = new System.Drawing.Size(112, 32);
     this.duOdstampaj.TabIndex   = 7;
     this.duOdstampaj.Text       = "         Odštampaj";
     this.duOdstampaj.UseVisualStyleBackColor = false;
     this.duOdstampaj.Click += new System.EventHandler(this.duOdstampaj_Click);
     //
     // duOdaberiDnevnik
     //
     this.duOdaberiDnevnik.BackColor  = System.Drawing.Color.Beige;
     this.duOdaberiDnevnik.Cursor     = System.Windows.Forms.Cursors.Hand;
     this.duOdaberiDnevnik.FlatStyle  = System.Windows.Forms.FlatStyle.Popup;
     this.duOdaberiDnevnik.Image      = ((System.Drawing.Image)(resources.GetObject("duOdaberiDnevnik.Image")));
     this.duOdaberiDnevnik.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.duOdaberiDnevnik.Location   = new System.Drawing.Point(12, 192);
     this.duOdaberiDnevnik.Name       = "duOdaberiDnevnik";
     this.duOdaberiDnevnik.Size       = new System.Drawing.Size(112, 32);
     this.duOdaberiDnevnik.TabIndex   = 6;
     this.duOdaberiDnevnik.Text       = "   Odaberi";
     this.duOdaberiDnevnik.UseVisualStyleBackColor = false;
     this.duOdaberiDnevnik.Click += new System.EventHandler(this.duOdaberiDnevnik_Click);
     //
     // duOdaberi
     //
     this.duOdaberi.BackColor  = System.Drawing.Color.Beige;
     this.duOdaberi.Cursor     = System.Windows.Forms.Cursors.Hand;
     this.duOdaberi.FlatStyle  = System.Windows.Forms.FlatStyle.Popup;
     this.duOdaberi.Image      = ((System.Drawing.Image)(resources.GetObject("duOdaberi.Image")));
     this.duOdaberi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.duOdaberi.Location   = new System.Drawing.Point(12, 192);
     this.duOdaberi.Name       = "duOdaberi";
     this.duOdaberi.Size       = new System.Drawing.Size(112, 32);
     this.duOdaberi.TabIndex   = 4;
     this.duOdaberi.Text       = "   Odaberi";
     this.duOdaberi.UseVisualStyleBackColor = false;
     this.duOdaberi.Click += new System.EventHandler(this.duOdaberi_Click);
     //
     // duZatvori
     //
     this.duZatvori.BackColor  = System.Drawing.Color.Beige;
     this.duZatvori.Cursor     = System.Windows.Forms.Cursors.Hand;
     this.duZatvori.FlatStyle  = System.Windows.Forms.FlatStyle.Popup;
     this.duZatvori.Image      = ((System.Drawing.Image)(resources.GetObject("duZatvori.Image")));
     this.duZatvori.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.duZatvori.Location   = new System.Drawing.Point(12, 232);
     this.duZatvori.Name       = "duZatvori";
     this.duZatvori.Size       = new System.Drawing.Size(112, 32);
     this.duZatvori.TabIndex   = 5;
     this.duZatvori.Text       = " Zatvori";
     this.duZatvori.UseVisualStyleBackColor = false;
     this.duZatvori.Click += new System.EventHandler(this.duZatvori_Click);
     //
     // duIzbrisi
     //
     this.duIzbrisi.BackColor  = System.Drawing.Color.Beige;
     this.duIzbrisi.Cursor     = System.Windows.Forms.Cursors.Hand;
     this.duIzbrisi.FlatStyle  = System.Windows.Forms.FlatStyle.Popup;
     this.duIzbrisi.Image      = ((System.Drawing.Image)(resources.GetObject("duIzbrisi.Image")));
     this.duIzbrisi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.duIzbrisi.Location   = new System.Drawing.Point(12, 152);
     this.duIzbrisi.Name       = "duIzbrisi";
     this.duIzbrisi.Size       = new System.Drawing.Size(112, 32);
     this.duIzbrisi.TabIndex   = 3;
     this.duIzbrisi.Text       = "Izbriši";
     this.duIzbrisi.UseVisualStyleBackColor = false;
     this.duIzbrisi.Click += new System.EventHandler(this.duIzbrisi_Click);
     //
     // duOsvjezi
     //
     this.duOsvjezi.BackColor  = System.Drawing.Color.Beige;
     this.duOsvjezi.Cursor     = System.Windows.Forms.Cursors.Hand;
     this.duOsvjezi.FlatStyle  = System.Windows.Forms.FlatStyle.Popup;
     this.duOsvjezi.Image      = ((System.Drawing.Image)(resources.GetObject("duOsvjezi.Image")));
     this.duOsvjezi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.duOsvjezi.Location   = new System.Drawing.Point(12, 112);
     this.duOsvjezi.Name       = "duOsvjezi";
     this.duOsvjezi.Size       = new System.Drawing.Size(112, 32);
     this.duOsvjezi.TabIndex   = 2;
     this.duOsvjezi.Text       = " Osvježi";
     this.duOsvjezi.UseVisualStyleBackColor = false;
     this.duOsvjezi.Click += new System.EventHandler(this.duOsvjezi_Click);
     //
     // duIzmjeni
     //
     this.duIzmjeni.BackColor  = System.Drawing.Color.Beige;
     this.duIzmjeni.Cursor     = System.Windows.Forms.Cursors.Hand;
     this.duIzmjeni.FlatStyle  = System.Windows.Forms.FlatStyle.Popup;
     this.duIzmjeni.Image      = ((System.Drawing.Image)(resources.GetObject("duIzmjeni.Image")));
     this.duIzmjeni.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.duIzmjeni.Location   = new System.Drawing.Point(12, 72);
     this.duIzmjeni.Name       = "duIzmjeni";
     this.duIzmjeni.Size       = new System.Drawing.Size(112, 32);
     this.duIzmjeni.TabIndex   = 1;
     this.duIzmjeni.Text       = " Izmjeni";
     this.duIzmjeni.UseVisualStyleBackColor = false;
     this.duIzmjeni.Click += new System.EventHandler(this.duIzmjeni_Click);
     //
     // duNovi
     //
     this.duNovi.BackColor  = System.Drawing.Color.Beige;
     this.duNovi.Cursor     = System.Windows.Forms.Cursors.Hand;
     this.duNovi.FlatStyle  = System.Windows.Forms.FlatStyle.Popup;
     this.duNovi.Image      = ((System.Drawing.Image)(resources.GetObject("duNovi.Image")));
     this.duNovi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.duNovi.Location   = new System.Drawing.Point(12, 32);
     this.duNovi.Name       = "duNovi";
     this.duNovi.Size       = new System.Drawing.Size(112, 32);
     this.duNovi.TabIndex   = 0;
     this.duNovi.Text       = "       Dodaj novi";
     this.duNovi.UseVisualStyleBackColor = false;
     this.duNovi.Click += new System.EventHandler(this.duNovi_Click);
     //
     // daInstruktori
     //
     this.daInstruktori.SelectCommand = this.sqlSelectCommand1;
     this.daInstruktori.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Instruktori", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("ID", "ID"),
             new System.Data.Common.DataColumnMapping("Ime", "Ime"),
             new System.Data.Common.DataColumnMapping("Prezime", "Prezime"),
             new System.Data.Common.DataColumnMapping("DatumRodjenja", "DatumRodjenja"),
             new System.Data.Common.DataColumnMapping("Adresa", "Adresa"),
             new System.Data.Common.DataColumnMapping("Telefon", "Telefon"),
             new System.Data.Common.DataColumnMapping("Email", "Email"),
             new System.Data.Common.DataColumnMapping("DatumZaposlenja", "DatumZaposlenja")
         })
     });
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "SELECT InstruktorID AS ID, Ime, Prezime, DatumRodjenja, Adresa, Telefon, Email, D" +
                                          "atumZaposlenja FROM Instruktori ORDER BY InstruktorID";
     //
     // connInstruktori
     //
     this.connInstruktori.ConnectionString = "Data Source=(local);Initial Catalog=baza;integrated security=SSPI";
     this.connInstruktori.FireInfoMessageEventOnUserErrors = false;
     //
     // dsInstruktori1
     //
     this.dsInstruktori1.DataSetName             = "dsInstruktori";
     this.dsInstruktori1.Locale                  = new System.Globalization.CultureInfo("hr-HR");
     this.dsInstruktori1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // dgInstruktori
     //
     this.dgInstruktori.DataMember      = "";
     this.dgInstruktori.DataSource      = this.dsInstruktori1.Instruktori;
     this.dgInstruktori.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dgInstruktori.Location        = new System.Drawing.Point(8, 48);
     this.dgInstruktori.Name            = "dgInstruktori";
     this.dgInstruktori.ReadOnly        = true;
     this.dgInstruktori.Size            = new System.Drawing.Size(599, 304);
     this.dgInstruktori.TabIndex        = 4;
     this.dgInstruktori.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dgTableStyleInstruktori
     });
     this.dgInstruktori.DoubleClick += new System.EventHandler(this.dgInstruktori_DoubleClick);
     //
     // dgTableStyleInstruktori
     //
     this.dgTableStyleInstruktori.DataGrid = this.dgInstruktori;
     this.dgTableStyleInstruktori.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.ID,
         this.Ime,
         this.Prezime,
         this.DatumRodjenja,
         this.Adresa,
         this.Telefon,
         this.Email,
         this.DatumZaposlenja,
         this.Testovi
     });
     this.dgTableStyleInstruktori.HeaderForeColor    = System.Drawing.SystemColors.ControlText;
     this.dgTableStyleInstruktori.MappingName        = "Instruktori";
     this.dgTableStyleInstruktori.PreferredRowHeight = 22;
     //
     // ID
     //
     this.ID.Format      = "";
     this.ID.FormatInfo  = null;
     this.ID.HeaderText  = "ID";
     this.ID.MappingName = "ID";
     this.ID.Width       = 0;
     //
     // Ime
     //
     this.Ime.Format      = "";
     this.Ime.FormatInfo  = null;
     this.Ime.HeaderText  = "Ime";
     this.Ime.MappingName = "Ime";
     this.Ime.Width       = 75;
     //
     // Prezime
     //
     this.Prezime.Format      = "";
     this.Prezime.FormatInfo  = null;
     this.Prezime.HeaderText  = "Prezime";
     this.Prezime.MappingName = "Prezime";
     this.Prezime.Width       = 75;
     //
     // DatumRodjenja
     //
     this.DatumRodjenja.Format      = "";
     this.DatumRodjenja.FormatInfo  = null;
     this.DatumRodjenja.HeaderText  = "Datum Rodjenja";
     this.DatumRodjenja.MappingName = "DatumRodjenja";
     this.DatumRodjenja.Width       = 105;
     //
     // Adresa
     //
     this.Adresa.Format      = "";
     this.Adresa.FormatInfo  = null;
     this.Adresa.HeaderText  = "Adresa";
     this.Adresa.MappingName = "Adresa";
     this.Adresa.Width       = 95;
     //
     // Telefon
     //
     this.Telefon.Format      = "";
     this.Telefon.FormatInfo  = null;
     this.Telefon.HeaderText  = "Telefon";
     this.Telefon.MappingName = "Telefon";
     this.Telefon.Width       = 85;
     //
     // Email
     //
     this.Email.Format      = "";
     this.Email.FormatInfo  = null;
     this.Email.HeaderText  = "Email";
     this.Email.MappingName = "Email";
     this.Email.Width       = 105;
     //
     // DatumZaposlenja
     //
     this.DatumZaposlenja.Format      = "";
     this.DatumZaposlenja.FormatInfo  = null;
     this.DatumZaposlenja.HeaderText  = "Datum Zaposlenja";
     this.DatumZaposlenja.MappingName = "DatumZaposlenja";
     this.DatumZaposlenja.Width       = 115;
     //
     // Testovi
     //
     this.Testovi.HeaderText  = "Testovi";
     this.Testovi.MappingName = "Testovi";
     this.Testovi.Width       = 75;
     //
     // pictureBoxInst
     //
     this.pictureBoxInst.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBoxInst.Image")));
     this.pictureBoxInst.Location = new System.Drawing.Point(0, 0);
     this.pictureBoxInst.Name     = "pictureBoxInst";
     this.pictureBoxInst.Size     = new System.Drawing.Size(774, 32);
     this.pictureBoxInst.TabIndex = 5;
     this.pictureBoxInst.TabStop  = false;
     //
     // frmInstruktori
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.ClientSize        = new System.Drawing.Size(763, 480);
     this.Controls.Add(this.pictureBoxInst);
     this.Controls.Add(this.dgInstruktori);
     this.Controls.Add(this.gbPretraga);
     this.Controls.Add(this.gbOpcije);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MaximumSize   = new System.Drawing.Size(771, 520);
     this.Name          = "frmInstruktori";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Instruktori";
     this.Load         += new System.EventHandler(this.frmInstruktori_Load);
     this.gbPretraga.ResumeLayout(false);
     this.gbPretraga.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.gbOpcije.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dsInstruktori1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgInstruktori)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxInst)).EndInit();
     this.ResumeLayout(false);
 }
Пример #54
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmRptOPHis));
     this.panel2                 = new System.Windows.Forms.Panel();
     this.dataGrid1              = new System.Windows.Forms.DataGrid();
     this.dataGridTableStyle1    = new System.Windows.Forms.DataGridTableStyle();
     this.trans_id               = new System.Windows.Forms.DataGridTextBoxColumn();
     this.task_name_cn           = new System.Windows.Forms.DataGridTextBoxColumn();
     this.trans_type             = new System.Windows.Forms.DataGridTextBoxColumn();
     this.name_cn                = new System.Windows.Forms.DataGridTextBoxColumn();
     this.trans_PK               = new System.Windows.Forms.DataGridTextBoxColumn();
     this.taskmain               = new System.Windows.Forms.DataGridTextBoxColumn();
     this.op_sql                 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.panel4                 = new System.Windows.Forms.Panel();
     this.priComboBox2           = new TJSystem.Classes.PriComboBox();
     this.label4                 = new System.Windows.Forms.Label();
     this.button2                = new TJSystem.Classes.XpStyleButton();
     this.priComboBox3           = new TJSystem.Classes.PriComboBox();
     this.priComboBox1           = new TJSystem.Classes.PriComboBox();
     this.label5                 = new System.Windows.Forms.Label();
     this.label7                 = new System.Windows.Forms.Label();
     this.label3                 = new System.Windows.Forms.Label();
     this.priDateTimePicker3     = new TJSystem.Classes.PriDateTimePicker();
     this.label2                 = new System.Windows.Forms.Label();
     this.priDateTimePicker1     = new TJSystem.Classes.PriDateTimePicker();
     this.button1                = new TJSystem.Classes.XpStyleButton();
     this.xpStyleButton1         = new TJSystem.Classes.XpStyleButton();
     this.panel1                 = new System.Windows.Forms.Panel();
     this.label1                 = new System.Windows.Forms.Label();
     this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
     this.panel4.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel2
     //
     this.panel2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel2.BackgroundImage")));
     this.panel2.BorderStyle     = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel2.Controls.Add(this.dataGrid1);
     this.panel2.Controls.Add(this.panel4);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Location = new System.Drawing.Point(0, 48);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(792, 518);
     this.panel2.TabIndex = 11;
     //
     // dataGrid1
     //
     this.dataGrid1.AllowSorting = false;
     this.dataGrid1.Anchor       = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                          | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.dataGrid1.BackgroundColor = System.Drawing.SystemColors.ActiveCaptionText;
     this.dataGrid1.CaptionText     = "销售历史记录";
     this.dataGrid1.CaptionVisible  = false;
     this.dataGrid1.DataMember      = "";
     this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGrid1.Location        = new System.Drawing.Point(0, 96);
     this.dataGrid1.Name            = "dataGrid1";
     this.dataGrid1.ReadOnly        = true;
     this.dataGrid1.Size            = new System.Drawing.Size(784, 416);
     this.dataGrid1.TabIndex        = 1;
     this.dataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1
     });
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.AllowSorting = false;
     this.dataGridTableStyle1.DataGrid     = this.dataGrid1;
     this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.trans_id,
         this.task_name_cn,
         this.trans_type,
         this.name_cn,
         this.trans_PK,
         this.taskmain,
         this.op_sql
     });
     this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle1.MappingName     = "xf_transition";
     this.dataGridTableStyle1.ReadOnly        = true;
     //
     // trans_id
     //
     this.trans_id.Format      = "";
     this.trans_id.FormatInfo  = null;
     this.trans_id.HeaderText  = "操作时间";
     this.trans_id.MappingName = "trans_id";
     this.trans_id.NullText    = "";
     this.trans_id.Width       = 150;
     //
     // task_name_cn
     //
     this.task_name_cn.Format      = "";
     this.task_name_cn.FormatInfo  = null;
     this.task_name_cn.HeaderText  = "作业名称";
     this.task_name_cn.MappingName = "task_name_cn";
     this.task_name_cn.NullText    = "";
     this.task_name_cn.Width       = 75;
     //
     // trans_type
     //
     this.trans_type.Format      = "";
     this.trans_type.FormatInfo  = null;
     this.trans_type.HeaderText  = "操作类型";
     this.trans_type.MappingName = "trans_type";
     this.trans_type.NullText    = "";
     this.trans_type.Width       = 75;
     //
     // name_cn
     //
     this.name_cn.Format      = "";
     this.name_cn.FormatInfo  = null;
     this.name_cn.HeaderText  = "操作者";
     this.name_cn.MappingName = "name_cn";
     this.name_cn.NullText    = "";
     this.name_cn.Width       = 150;
     //
     // trans_PK
     //
     this.trans_PK.Format      = "";
     this.trans_PK.FormatInfo  = null;
     this.trans_PK.HeaderText  = "操作关键字";
     this.trans_PK.MappingName = "trans_PK";
     this.trans_PK.NullText    = "";
     this.trans_PK.Width       = 75;
     //
     // taskmain
     //
     this.taskmain.Format      = "";
     this.taskmain.FormatInfo  = null;
     this.taskmain.HeaderText  = "操作对象";
     this.taskmain.MappingName = "taskmain";
     this.taskmain.NullText    = "";
     this.taskmain.Width       = 75;
     //
     // op_sql
     //
     this.op_sql.Format      = "";
     this.op_sql.FormatInfo  = null;
     this.op_sql.HeaderText  = "操作内容";
     this.op_sql.MappingName = "op_sql";
     this.op_sql.NullText    = "";
     this.op_sql.Width       = 150;
     //
     // panel4
     //
     this.panel4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel4.BackgroundImage")));
     this.panel4.BorderStyle     = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel4.Controls.Add(this.priComboBox2);
     this.panel4.Controls.Add(this.label4);
     this.panel4.Controls.Add(this.button2);
     this.panel4.Controls.Add(this.priComboBox3);
     this.panel4.Controls.Add(this.priComboBox1);
     this.panel4.Controls.Add(this.label5);
     this.panel4.Controls.Add(this.label7);
     this.panel4.Controls.Add(this.label3);
     this.panel4.Controls.Add(this.priDateTimePicker3);
     this.panel4.Controls.Add(this.label2);
     this.panel4.Controls.Add(this.priDateTimePicker1);
     this.panel4.Controls.Add(this.button1);
     this.panel4.Controls.Add(this.xpStyleButton1);
     this.panel4.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel4.Location = new System.Drawing.Point(0, 0);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(788, 96);
     this.panel4.TabIndex = 0;
     //
     // priComboBox2
     //
     this.priComboBox2.BackColor     = System.Drawing.Color.White;
     this.priComboBox2.DataField     = "status";
     this.priComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.priComboBox2.Location      = new System.Drawing.Point(104, 64);
     this.priComboBox2.Name          = "priComboBox2";
     this.priComboBox2.Size          = new System.Drawing.Size(328, 21);
     this.priComboBox2.TabIndex      = 222;
     //
     // label4
     //
     this.label4.BackColor = System.Drawing.Color.Transparent;
     this.label4.Font      = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.label4.ForeColor = System.Drawing.Color.Blue;
     this.label4.Location  = new System.Drawing.Point(16, 64);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(72, 23);
     this.label4.TabIndex  = 221;
     this.label4.Text      = "作业名称";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(568, 56);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(75, 32);
     this.button2.TabIndex = 220;
     this.button2.Text     = "打印";
     this.button2.Click   += new System.EventHandler(this.button2_Click);
     //
     // priComboBox3
     //
     this.priComboBox3.BackColor     = System.Drawing.Color.White;
     this.priComboBox3.DataField     = "Contact_id";
     this.priComboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.priComboBox3.Location      = new System.Drawing.Point(104, 40);
     this.priComboBox3.Name          = "priComboBox3";
     this.priComboBox3.Size          = new System.Drawing.Size(120, 21);
     this.priComboBox3.TabIndex      = 219;
     //
     // priComboBox1
     //
     this.priComboBox1.BackColor     = System.Drawing.Color.White;
     this.priComboBox1.DataField     = "status";
     this.priComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.priComboBox1.Location      = new System.Drawing.Point(312, 40);
     this.priComboBox1.Name          = "priComboBox1";
     this.priComboBox1.Size          = new System.Drawing.Size(120, 21);
     this.priComboBox1.TabIndex      = 218;
     //
     // label5
     //
     this.label5.BackColor = System.Drawing.Color.Transparent;
     this.label5.Font      = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.label5.ForeColor = System.Drawing.Color.Blue;
     this.label5.Location  = new System.Drawing.Point(256, 40);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(48, 23);
     this.label5.TabIndex  = 217;
     this.label5.Text      = "状态";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.BackColor = System.Drawing.Color.Transparent;
     this.label7.Font      = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.label7.Location  = new System.Drawing.Point(16, 40);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(80, 23);
     this.label7.TabIndex  = 216;
     this.label7.Text      = "销售人员";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.BackColor = System.Drawing.Color.Transparent;
     this.label3.ForeColor = System.Drawing.Color.Blue;
     this.label3.Location  = new System.Drawing.Point(240, 16);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(64, 23);
     this.label3.TabIndex  = 215;
     this.label3.Text      = "结束日期";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // priDateTimePicker3
     //
     this.priDateTimePicker3.CustomFormat = "yyyy-MM-dd";
     this.priDateTimePicker3.DataField    = "so_date";
     this.priDateTimePicker3.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.priDateTimePicker3.Location     = new System.Drawing.Point(104, 16);
     this.priDateTimePicker3.Name         = "priDateTimePicker3";
     this.priDateTimePicker3.Size         = new System.Drawing.Size(120, 22);
     this.priDateTimePicker3.TabIndex     = 214;
     //
     // label2
     //
     this.label2.BackColor = System.Drawing.Color.Transparent;
     this.label2.ForeColor = System.Drawing.Color.Blue;
     this.label2.Location  = new System.Drawing.Point(16, 16);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(80, 23);
     this.label2.TabIndex  = 16;
     this.label2.Text      = "起始日期";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // priDateTimePicker1
     //
     this.priDateTimePicker1.CustomFormat = "yyyy-MM-dd";
     this.priDateTimePicker1.DataField    = "so_date";
     this.priDateTimePicker1.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.priDateTimePicker1.Location     = new System.Drawing.Point(312, 16);
     this.priDateTimePicker1.Name         = "priDateTimePicker1";
     this.priDateTimePicker1.Size         = new System.Drawing.Size(120, 22);
     this.priDateTimePicker1.TabIndex     = 214;
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(472, 56);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(75, 32);
     this.button1.TabIndex = 1;
     this.button1.Text     = "查询";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // xpStyleButton1
     //
     this.xpStyleButton1.Location = new System.Drawing.Point(664, 56);
     this.xpStyleButton1.Name     = "xpStyleButton1";
     this.xpStyleButton1.Size     = new System.Drawing.Size(75, 32);
     this.xpStyleButton1.TabIndex = 1;
     this.xpStyleButton1.Text     = "清除记录";
     this.xpStyleButton1.Click   += new System.EventHandler(this.xpStyleButton1_Click);
     //
     // panel1
     //
     this.panel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel1.BackgroundImage")));
     this.panel1.BorderStyle     = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(792, 48);
     this.panel1.TabIndex = 10;
     //
     // label1
     //
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.label1.Font      = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.label1.Location  = new System.Drawing.Point(0, 0);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(788, 44);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "用户操作记录";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // dataGridTextBoxColumn1
     //
     this.dataGridTextBoxColumn1.Format      = "";
     this.dataGridTextBoxColumn1.FormatInfo  = null;
     this.dataGridTextBoxColumn1.HeaderText  = "员工编号";
     this.dataGridTextBoxColumn1.MappingName = "employee_id";
     this.dataGridTextBoxColumn1.NullText    = "";
     this.dataGridTextBoxColumn1.Width       = 75;
     //
     // dataGridTextBoxColumn2
     //
     this.dataGridTextBoxColumn2.Format      = "";
     this.dataGridTextBoxColumn2.FormatInfo  = null;
     this.dataGridTextBoxColumn2.HeaderText  = "员工姓名";
     this.dataGridTextBoxColumn2.MappingName = "";
     this.dataGridTextBoxColumn2.NullText    = "";
     this.dataGridTextBoxColumn2.Width       = 75;
     //
     // dataGridTextBoxColumn3
     //
     this.dataGridTextBoxColumn3.Format      = "";
     this.dataGridTextBoxColumn3.FormatInfo  = null;
     this.dataGridTextBoxColumn3.HeaderText  = "英文名";
     this.dataGridTextBoxColumn3.MappingName = "";
     this.dataGridTextBoxColumn3.NullText    = "";
     this.dataGridTextBoxColumn3.Width       = 75;
     //
     // dataGridTextBoxColumn4
     //
     this.dataGridTextBoxColumn4.Format      = "";
     this.dataGridTextBoxColumn4.FormatInfo  = null;
     this.dataGridTextBoxColumn4.HeaderText  = "性别";
     this.dataGridTextBoxColumn4.MappingName = "Gender";
     this.dataGridTextBoxColumn4.NullText    = "";
     this.dataGridTextBoxColumn4.Width       = 75;
     //
     // frmRptOPHis
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(7, 15);
     this.ClientSize        = new System.Drawing.Size(792, 566);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.Name = "frmRptOPHis";
     this.Text = "用户操作记录";
     this.panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
     this.panel4.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #55
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.panel总                 = new System.Windows.Forms.Panel();
     this.panel右下                = new System.Windows.Forms.Panel();
     this.lbUpdate_Date          = new System.Windows.Forms.Label();
     this.lbUpdate               = new System.Windows.Forms.Label();
     this.lbBook_Date            = new System.Windows.Forms.Label();
     this.lbOper                 = new System.Windows.Forms.Label();
     this.label3                 = new System.Windows.Forms.Label();
     this.label4                 = new System.Windows.Forms.Label();
     this.label2                 = new System.Windows.Forms.Label();
     this.label1                 = new System.Windows.Forms.Label();
     this.btExit                 = new System.Windows.Forms.Button();
     this.btDel                  = new System.Windows.Forms.Button();
     this.btOpen                 = new System.Windows.Forms.Button();
     this.button1                = new System.Windows.Forms.Button();
     this.button2                = new System.Windows.Forms.Button();
     this.myDataGrid2            = new DataGridEx();
     this.dataGridTableStyle2    = new System.Windows.Forms.DataGridTableStyle();
     this.splitter1              = new System.Windows.Forms.Splitter();
     this.panel左                 = new System.Windows.Forms.Panel();
     this.myDataGrid1            = new DataGridEx();
     this.dataGridTableStyle1    = new System.Windows.Forms.DataGridTableStyle();
     this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn5 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn6 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn7 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn8 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.splitter2              = new System.Windows.Forms.Splitter();
     this.panel1                 = new System.Windows.Forms.Panel();
     this.panel总.SuspendLayout();
     this.panel右下.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid2)).BeginInit();
     this.panel左.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel总
     //
     this.panel总.Controls.Add(this.panel1);
     this.panel总.Controls.Add(this.splitter2);
     this.panel总.Controls.Add(this.panel右下);
     this.panel总.Controls.Add(this.splitter1);
     this.panel总.Controls.Add(this.panel左);
     this.panel总.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel总.Location = new System.Drawing.Point(0, 0);
     this.panel总.Name     = "panel总";
     this.panel总.Size     = new System.Drawing.Size(896, 597);
     this.panel总.TabIndex = 0;
     //
     // panel右下
     //
     this.panel右下.Controls.Add(this.lbUpdate_Date);
     this.panel右下.Controls.Add(this.lbUpdate);
     this.panel右下.Controls.Add(this.lbBook_Date);
     this.panel右下.Controls.Add(this.lbOper);
     this.panel右下.Controls.Add(this.label3);
     this.panel右下.Controls.Add(this.label4);
     this.panel右下.Controls.Add(this.label2);
     this.panel右下.Controls.Add(this.label1);
     this.panel右下.Controls.Add(this.btExit);
     this.panel右下.Controls.Add(this.btDel);
     this.panel右下.Controls.Add(this.btOpen);
     this.panel右下.Controls.Add(this.button1);
     this.panel右下.Controls.Add(this.button2);
     this.panel右下.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel右下.Location = new System.Drawing.Point(260, 525);
     this.panel右下.Name     = "panel右下";
     this.panel右下.Size     = new System.Drawing.Size(636, 72);
     this.panel右下.TabIndex = 4;
     //
     // lbUpdate_Date
     //
     this.lbUpdate_Date.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbUpdate_Date.ForeColor = System.Drawing.SystemColors.HotTrack;
     this.lbUpdate_Date.Location  = new System.Drawing.Point(272, 43);
     this.lbUpdate_Date.Name      = "lbUpdate_Date";
     this.lbUpdate_Date.Size      = new System.Drawing.Size(120, 16);
     this.lbUpdate_Date.TabIndex  = 52;
     //
     // lbUpdate
     //
     this.lbUpdate.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbUpdate.ForeColor = System.Drawing.SystemColors.HotTrack;
     this.lbUpdate.Location  = new System.Drawing.Point(136, 43);
     this.lbUpdate.Name      = "lbUpdate";
     this.lbUpdate.Size      = new System.Drawing.Size(56, 16);
     this.lbUpdate.TabIndex  = 51;
     //
     // lbBook_Date
     //
     this.lbBook_Date.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbBook_Date.ForeColor = System.Drawing.SystemColors.HotTrack;
     this.lbBook_Date.Location  = new System.Drawing.Point(272, 19);
     this.lbBook_Date.Name      = "lbBook_Date";
     this.lbBook_Date.Size      = new System.Drawing.Size(120, 16);
     this.lbBook_Date.TabIndex  = 50;
     //
     // lbOper
     //
     this.lbOper.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lbOper.ForeColor = System.Drawing.SystemColors.HotTrack;
     this.lbOper.Location  = new System.Drawing.Point(136, 19);
     this.lbOper.Name      = "lbOper";
     this.lbOper.Size      = new System.Drawing.Size(56, 16);
     this.lbOper.TabIndex  = 49;
     //
     // label3
     //
     this.label3.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.Location = new System.Drawing.Point(200, 43);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(72, 16);
     this.label3.TabIndex = 48;
     this.label3.Text     = "修改时间:";
     //
     // label4
     //
     this.label4.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label4.Location = new System.Drawing.Point(80, 43);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(56, 16);
     this.label4.TabIndex = 47;
     this.label4.Text     = "修改者:";
     //
     // label2
     //
     this.label2.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Location = new System.Drawing.Point(200, 19);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(72, 16);
     this.label2.TabIndex = 46;
     this.label2.Text     = "创建时间:";
     //
     // label1
     //
     this.label1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.Location = new System.Drawing.Point(80, 19);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(56, 16);
     this.label1.TabIndex = 45;
     this.label1.Text     = "创建者:";
     //
     // btExit
     //
     this.btExit.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btExit.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.btExit.Font       = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.btExit.ForeColor  = System.Drawing.SystemColors.Desktop;
     this.btExit.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btExit.ImageIndex = 7;
     this.btExit.Location   = new System.Drawing.Point(560, 27);
     this.btExit.Name       = "btExit";
     this.btExit.Size       = new System.Drawing.Size(64, 24);
     this.btExit.TabIndex   = 44;
     this.btExit.Text       = "退出(&E)";
     this.btExit.Click     += new System.EventHandler(this.btExit_Click);
     //
     // btDel
     //
     this.btDel.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btDel.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.btDel.Font       = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.btDel.ForeColor  = System.Drawing.SystemColors.Desktop;
     this.btDel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btDel.ImageIndex = 7;
     this.btDel.Location   = new System.Drawing.Point(488, 27);
     this.btDel.Name       = "btDel";
     this.btDel.Size       = new System.Drawing.Size(64, 24);
     this.btDel.TabIndex   = 43;
     this.btDel.Text       = "删除(&D)";
     this.btDel.Click     += new System.EventHandler(this.btDelete_Click);
     //
     // btOpen
     //
     this.btOpen.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btOpen.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.btOpen.Font       = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.btOpen.ForeColor  = System.Drawing.SystemColors.Desktop;
     this.btOpen.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btOpen.ImageIndex = 7;
     this.btOpen.Location   = new System.Drawing.Point(416, 27);
     this.btOpen.Name       = "btOpen";
     this.btOpen.Size       = new System.Drawing.Size(64, 24);
     this.btOpen.TabIndex   = 42;
     this.btOpen.Text       = "打开(&O)";
     this.btOpen.Click     += new System.EventHandler(this.btOpen_Click);
     //
     // button1
     //
     this.button1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Enabled   = false;
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.button1.Location  = new System.Drawing.Point(64, 11);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(336, 56);
     this.button1.TabIndex  = 3;
     //
     // button2
     //
     this.button2.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.button2.Enabled    = false;
     this.button2.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.button2.Font       = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.button2.ForeColor  = System.Drawing.SystemColors.Desktop;
     this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.button2.ImageIndex = 7;
     this.button2.Location   = new System.Drawing.Point(408, 11);
     this.button2.Name       = "button2";
     this.button2.Size       = new System.Drawing.Size(224, 56);
     this.button2.TabIndex   = 53;
     //
     // myDataGrid2
     //
     this.myDataGrid2.AllowSorting     = false;
     this.myDataGrid2.BackgroundColor  = System.Drawing.SystemColors.Window;
     this.myDataGrid2.CaptionBackColor = System.Drawing.Color.PaleTurquoise;
     this.myDataGrid2.CaptionFont      = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.myDataGrid2.CaptionForeColor = System.Drawing.SystemColors.HotTrack;
     this.myDataGrid2.CaptionText      = "模板内容";
     this.myDataGrid2.DataMember       = "";
     this.myDataGrid2.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.myDataGrid2.Font             = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.myDataGrid2.HeaderForeColor  = System.Drawing.SystemColors.ControlText;
     this.myDataGrid2.Location         = new System.Drawing.Point(0, 0);
     this.myDataGrid2.Name             = "myDataGrid2";
     this.myDataGrid2.ReadOnly         = true;
     this.myDataGrid2.Size             = new System.Drawing.Size(636, 522);
     this.myDataGrid2.TabIndex         = 26;
     this.myDataGrid2.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle2
     });
     //
     // dataGridTableStyle2
     //
     this.dataGridTableStyle2.DataGrid        = this.myDataGrid2;
     this.dataGridTableStyle2.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle2.MappingName     = "";
     //
     // splitter1
     //
     this.splitter1.Location = new System.Drawing.Point(256, 0);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(4, 597);
     this.splitter1.TabIndex = 1;
     this.splitter1.TabStop  = false;
     //
     // panel左
     //
     this.panel左.Controls.Add(this.myDataGrid1);
     this.panel左.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel左.Location = new System.Drawing.Point(0, 0);
     this.panel左.Name     = "panel左";
     this.panel左.Size     = new System.Drawing.Size(256, 597);
     this.panel左.TabIndex = 0;
     //
     // myDataGrid1
     //
     this.myDataGrid1.AllowSorting     = false;
     this.myDataGrid1.BackgroundColor  = System.Drawing.SystemColors.Window;
     this.myDataGrid1.CaptionBackColor = System.Drawing.Color.PaleTurquoise;
     this.myDataGrid1.CaptionFont      = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.myDataGrid1.CaptionForeColor = System.Drawing.SystemColors.HotTrack;
     this.myDataGrid1.CaptionText      = "模板列表";
     this.myDataGrid1.DataMember       = "";
     this.myDataGrid1.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.myDataGrid1.Font             = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.myDataGrid1.HeaderForeColor  = System.Drawing.SystemColors.ControlText;
     this.myDataGrid1.Location         = new System.Drawing.Point(0, 0);
     this.myDataGrid1.Name             = "myDataGrid1";
     this.myDataGrid1.ReadOnly         = true;
     this.myDataGrid1.Size             = new System.Drawing.Size(256, 597);
     this.myDataGrid1.TabIndex         = 26;
     this.myDataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1
     });
     this.myDataGrid1.CurrentCellChanged += new System.EventHandler(this.myDataGrid1_CurrentCellChanged);
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.DataGrid        = this.myDataGrid1;
     this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle1.MappingName     = "";
     //
     // dataGridTextBoxColumn1
     //
     this.dataGridTextBoxColumn1.Format      = "";
     this.dataGridTextBoxColumn1.FormatInfo  = null;
     this.dataGridTextBoxColumn1.MappingName = "";
     this.dataGridTextBoxColumn1.Width       = 75;
     //
     // dataGridTextBoxColumn2
     //
     this.dataGridTextBoxColumn2.Format      = "";
     this.dataGridTextBoxColumn2.FormatInfo  = null;
     this.dataGridTextBoxColumn2.MappingName = "";
     this.dataGridTextBoxColumn2.Width       = 75;
     //
     // dataGridTextBoxColumn3
     //
     this.dataGridTextBoxColumn3.Format      = "";
     this.dataGridTextBoxColumn3.FormatInfo  = null;
     this.dataGridTextBoxColumn3.MappingName = "";
     this.dataGridTextBoxColumn3.Width       = 75;
     //
     // dataGridTextBoxColumn4
     //
     this.dataGridTextBoxColumn4.Format      = "";
     this.dataGridTextBoxColumn4.FormatInfo  = null;
     this.dataGridTextBoxColumn4.MappingName = "";
     this.dataGridTextBoxColumn4.Width       = 75;
     //
     // dataGridTextBoxColumn5
     //
     this.dataGridTextBoxColumn5.Format      = "";
     this.dataGridTextBoxColumn5.FormatInfo  = null;
     this.dataGridTextBoxColumn5.MappingName = "";
     this.dataGridTextBoxColumn5.Width       = 75;
     //
     // dataGridTextBoxColumn6
     //
     this.dataGridTextBoxColumn6.Format      = "";
     this.dataGridTextBoxColumn6.FormatInfo  = null;
     this.dataGridTextBoxColumn6.MappingName = "";
     this.dataGridTextBoxColumn6.Width       = 75;
     //
     // dataGridTextBoxColumn7
     //
     this.dataGridTextBoxColumn7.Format      = "";
     this.dataGridTextBoxColumn7.FormatInfo  = null;
     this.dataGridTextBoxColumn7.MappingName = "";
     this.dataGridTextBoxColumn7.Width       = 75;
     //
     // dataGridTextBoxColumn8
     //
     this.dataGridTextBoxColumn8.Format      = "";
     this.dataGridTextBoxColumn8.FormatInfo  = null;
     this.dataGridTextBoxColumn8.MappingName = "";
     this.dataGridTextBoxColumn8.Width       = 75;
     //
     // splitter2
     //
     this.splitter2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.splitter2.Location = new System.Drawing.Point(260, 522);
     this.splitter2.Name     = "splitter2";
     this.splitter2.Size     = new System.Drawing.Size(636, 3);
     this.splitter2.TabIndex = 5;
     this.splitter2.TabStop  = false;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.myDataGrid2);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(260, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(636, 522);
     this.panel1.TabIndex = 6;
     //
     // frmYZModel
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(896, 597);
     this.Controls.Add(this.panel总);
     this.Name          = "frmYZModel";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "医嘱模板管理";
     this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
     this.Closing      += new System.ComponentModel.CancelEventHandler(this.frmYZModel_Closing);
     this.Load         += new System.EventHandler(this.frmYZModel_Load);
     this.panel总.ResumeLayout(false);
     this.panel右下.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid2)).EndInit();
     this.panel左.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #56
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmGeneralNurseWholeRecord));
     this.m_GridRecord           = new System.Windows.Forms.DataGrid();
     this.dataGridTableStyle1    = new System.Windows.Forms.DataGridTableStyle();
     this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn5 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn6 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.m_cmdSave   = new System.Windows.Forms.Button();
     this.m_cmdCancel = new System.Windows.Forms.Button();
     this.m_pnlNewBase.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.m_GridRecord)).BeginInit();
     this.SuspendLayout();
     //
     // m_trvCreateDate
     //
     this.m_trvCreateDate.LineColor = System.Drawing.Color.Black;
     this.m_trvCreateDate.Location  = new System.Drawing.Point(616, 69);
     this.m_trvCreateDate.Visible   = false;
     //
     // lblCreateDateTitle
     //
     this.lblCreateDateTitle.Location = new System.Drawing.Point(296, 88);
     this.lblCreateDateTitle.Visible  = false;
     //
     // m_dtpCreateDate
     //
     this.m_dtpCreateDate.Location = new System.Drawing.Point(376, 84);
     this.m_dtpCreateDate.Visible  = false;
     //
     // lblSex
     //
     this.lblSex.Location = new System.Drawing.Point(696, 144);
     this.lblSex.Visible  = false;
     //
     // lblAge
     //
     this.lblAge.Location = new System.Drawing.Point(804, 144);
     this.lblAge.Visible  = false;
     //
     // lblBedNoTitle
     //
     this.lblBedNoTitle.Location = new System.Drawing.Point(304, 148);
     this.lblBedNoTitle.Visible  = false;
     //
     // lblInHospitalNoTitle
     //
     this.lblInHospitalNoTitle.Location = new System.Drawing.Point(300, 116);
     this.lblInHospitalNoTitle.Visible  = false;
     //
     // lblNameTitle
     //
     this.lblNameTitle.Location = new System.Drawing.Point(476, 148);
     this.lblNameTitle.Visible  = false;
     //
     // lblSexTitle
     //
     this.lblSexTitle.Location = new System.Drawing.Point(648, 144);
     this.lblSexTitle.Visible  = false;
     //
     // lblAgeTitle
     //
     this.lblAgeTitle.Location = new System.Drawing.Point(756, 144);
     this.lblAgeTitle.Visible  = false;
     //
     // lblAreaTitle
     //
     this.lblAreaTitle.Location = new System.Drawing.Point(260, 70);
     this.lblAreaTitle.Visible  = false;
     //
     // m_lsvInPatientID
     //
     this.m_lsvInPatientID.Location = new System.Drawing.Point(308, 58);
     this.m_lsvInPatientID.Visible  = false;
     //
     // txtInPatientID
     //
     this.txtInPatientID.Location = new System.Drawing.Point(360, 116);
     this.txtInPatientID.Visible  = false;
     //
     // m_txtPatientName
     //
     this.m_txtPatientName.Location = new System.Drawing.Point(520, 144);
     this.m_txtPatientName.Visible  = false;
     //
     // m_txtBedNO
     //
     this.m_txtBedNO.Location = new System.Drawing.Point(348, 144);
     this.m_txtBedNO.Visible  = false;
     //
     // m_cboArea
     //
     this.m_cboArea.Location              = new System.Drawing.Point(308, 66);
     this.m_cboArea.Visible               = false;
     this.m_cboArea.SelectedIndexChanged += new System.EventHandler(this.m_cboArea_SelectedIndexChanged);
     //
     // m_lsvPatientName
     //
     this.m_lsvPatientName.Location = new System.Drawing.Point(480, 79);
     this.m_lsvPatientName.Visible  = false;
     //
     // m_lsvBedNO
     //
     this.m_lsvBedNO.Location = new System.Drawing.Point(308, 75);
     this.m_lsvBedNO.Visible  = false;
     //
     // m_cboDept
     //
     this.m_cboDept.Location              = new System.Drawing.Point(100, 66);
     this.m_cboDept.Visible               = false;
     this.m_cboDept.SelectedIndexChanged += new System.EventHandler(this.m_cboDept_SelectedIndexChanged);
     //
     // lblDept
     //
     this.lblDept.Location = new System.Drawing.Point(52, 70);
     this.lblDept.Visible  = false;
     //
     // m_cmdNewTemplate
     //
     this.m_cmdNewTemplate.Location = new System.Drawing.Point(732, 74);
     //
     // m_cmdNext
     //
     this.m_cmdNext.Location = new System.Drawing.Point(376, 68);
     //
     // m_cmdPre
     //
     this.m_cmdPre.Location = new System.Drawing.Point(156, 87);
     //
     // m_lblForTitle
     //
     this.m_lblForTitle.Location = new System.Drawing.Point(340, 148);
     //
     // chkModifyWithoutMatk
     //
     this.chkModifyWithoutMatk.Location = new System.Drawing.Point(448, 60);
     //
     // m_cmdModifyPatientInfo
     //
     this.m_cmdModifyPatientInfo.Location = new System.Drawing.Point(629, 80);
     //
     // m_pnlNewBase
     //
     this.m_pnlNewBase.Location = new System.Drawing.Point(4, 7);
     this.m_pnlNewBase.Size     = new System.Drawing.Size(852, 32);
     this.m_pnlNewBase.Visible  = true;
     //
     // m_ctlPatientInfo
     //
     this.m_ctlPatientInfo.m_BlnIsShowPatientAge  = true;
     this.m_ctlPatientInfo.m_BlnIsShowPatientName = true;
     this.m_ctlPatientInfo.m_BlnIsShowSex         = true;
     this.m_ctlPatientInfo.Size    = new System.Drawing.Size(850, 1);
     this.m_ctlPatientInfo.Visible = false;
     //
     // m_GridRecord
     //
     this.m_GridRecord.BorderStyle     = System.Windows.Forms.BorderStyle.FixedSingle;
     this.m_GridRecord.DataMember      = "";
     this.m_GridRecord.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.m_GridRecord.Location        = new System.Drawing.Point(4, 40);
     this.m_GridRecord.Name            = "m_GridRecord";
     this.m_GridRecord.Size            = new System.Drawing.Size(852, 524);
     this.m_GridRecord.TabIndex        = 10000004;
     this.m_GridRecord.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1
     });
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.DataGrid = this.m_GridRecord;
     this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.dataGridTextBoxColumn1,
         this.dataGridTextBoxColumn2,
         this.dataGridTextBoxColumn3,
         this.dataGridTextBoxColumn4,
         this.dataGridTextBoxColumn5,
         this.dataGridTextBoxColumn6
     });
     this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     //
     // dataGridTextBoxColumn1
     //
     this.dataGridTextBoxColumn1.Format      = "";
     this.dataGridTextBoxColumn1.FormatInfo  = null;
     this.dataGridTextBoxColumn1.HeaderText  = "床  号";
     this.dataGridTextBoxColumn1.MappingName = "BedID";
     this.dataGridTextBoxColumn1.NullText    = "";
     this.dataGridTextBoxColumn1.ReadOnly    = true;
     this.dataGridTextBoxColumn1.Width       = 75;
     //
     // dataGridTextBoxColumn2
     //
     this.dataGridTextBoxColumn2.Format      = "";
     this.dataGridTextBoxColumn2.FormatInfo  = null;
     this.dataGridTextBoxColumn2.HeaderText  = "姓  名";
     this.dataGridTextBoxColumn2.MappingName = "CName";
     this.dataGridTextBoxColumn2.NullText    = "";
     this.dataGridTextBoxColumn2.ReadOnly    = true;
     this.dataGridTextBoxColumn2.Width       = 75;
     //
     // dataGridTextBoxColumn3
     //
     this.dataGridTextBoxColumn3.Format      = "";
     this.dataGridTextBoxColumn3.FormatInfo  = null;
     this.dataGridTextBoxColumn3.HeaderText  = "护理记录";
     this.dataGridTextBoxColumn3.MappingName = "NR";
     this.dataGridTextBoxColumn3.NullText    = "";
     this.dataGridTextBoxColumn3.Width       = 480;
     //
     // dataGridTextBoxColumn4
     //
     this.dataGridTextBoxColumn4.Format      = "";
     this.dataGridTextBoxColumn4.FormatInfo  = null;
     this.dataGridTextBoxColumn4.HeaderText  = "填写日期";
     this.dataGridTextBoxColumn4.MappingName = "tDate";
     this.dataGridTextBoxColumn4.NullText    = "";
     this.dataGridTextBoxColumn4.Width       = 140;
     //
     // dataGridTextBoxColumn5
     //
     this.dataGridTextBoxColumn5.Format      = "";
     this.dataGridTextBoxColumn5.FormatInfo  = null;
     this.dataGridTextBoxColumn5.HeaderText  = "住院号";
     this.dataGridTextBoxColumn5.MappingName = "InPatientID";
     this.dataGridTextBoxColumn5.NullText    = "";
     this.dataGridTextBoxColumn5.ReadOnly    = true;
     this.dataGridTextBoxColumn5.Width       = 0;
     //
     // dataGridTextBoxColumn6
     //
     this.dataGridTextBoxColumn6.Format      = "";
     this.dataGridTextBoxColumn6.FormatInfo  = null;
     this.dataGridTextBoxColumn6.HeaderText  = "住院日期";
     this.dataGridTextBoxColumn6.MappingName = "InDate";
     this.dataGridTextBoxColumn6.ReadOnly    = true;
     this.dataGridTextBoxColumn6.Width       = 0;
     //
     // m_cmdSave
     //
     this.m_cmdSave.Location = new System.Drawing.Point(680, 572);
     this.m_cmdSave.Name     = "m_cmdSave";
     this.m_cmdSave.Size     = new System.Drawing.Size(76, 28);
     this.m_cmdSave.TabIndex = 10000005;
     this.m_cmdSave.Text     = "保存";
     this.m_cmdSave.Click   += new System.EventHandler(this.m_cmdSave_Click);
     //
     // m_cmdCancel
     //
     this.m_cmdCancel.Location = new System.Drawing.Point(776, 572);
     this.m_cmdCancel.Name     = "m_cmdCancel";
     this.m_cmdCancel.Size     = new System.Drawing.Size(76, 28);
     this.m_cmdCancel.TabIndex = 10000005;
     this.m_cmdCancel.Text     = "取消";
     this.m_cmdCancel.Click   += new System.EventHandler(this.m_cmdCancel_Click);
     //
     // frmGeneralNurseWholeRecord
     //
     this.AutoScroll = false;
     this.ClientSize = new System.Drawing.Size(860, 617);
     this.Controls.Add(this.m_GridRecord);
     this.Controls.Add(this.m_cmdSave);
     this.Controls.Add(this.m_cmdCancel);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "frmGeneralNurseWholeRecord";
     this.Text = "一般护理记录(整体录入)";
     this.Controls.SetChildIndex(this.m_cmdModifyPatientInfo, 0);
     this.Controls.SetChildIndex(this.m_pnlNewBase, 0);
     this.Controls.SetChildIndex(this.chkModifyWithoutMatk, 0);
     this.Controls.SetChildIndex(this.m_lblGetDataTime, 0);
     this.Controls.SetChildIndex(this.m_dtpGetDataTime, 0);
     this.Controls.SetChildIndex(this.m_cmdCancel, 0);
     this.Controls.SetChildIndex(this.m_dtpCreateDate, 0);
     this.Controls.SetChildIndex(this.m_trvCreateDate, 0);
     this.Controls.SetChildIndex(this.lblCreateDateTitle, 0);
     this.Controls.SetChildIndex(this.m_lblForTitle, 0);
     this.Controls.SetChildIndex(this.txtInPatientID, 0);
     this.Controls.SetChildIndex(this.lblAreaTitle, 0);
     this.Controls.SetChildIndex(this.lblAgeTitle, 0);
     this.Controls.SetChildIndex(this.lblSexTitle, 0);
     this.Controls.SetChildIndex(this.lblNameTitle, 0);
     this.Controls.SetChildIndex(this.lblInHospitalNoTitle, 0);
     this.Controls.SetChildIndex(this.lblBedNoTitle, 0);
     this.Controls.SetChildIndex(this.lblAge, 0);
     this.Controls.SetChildIndex(this.lblSex, 0);
     this.Controls.SetChildIndex(this.m_txtPatientName, 0);
     this.Controls.SetChildIndex(this.m_txtBedNO, 0);
     this.Controls.SetChildIndex(this.m_cboArea, 0);
     this.Controls.SetChildIndex(this.lblDept, 0);
     this.Controls.SetChildIndex(this.m_cboDept, 0);
     this.Controls.SetChildIndex(this.m_cmdNewTemplate, 0);
     this.Controls.SetChildIndex(this.m_cmdNext, 0);
     this.Controls.SetChildIndex(this.m_cmdPre, 0);
     this.Controls.SetChildIndex(this.m_lsvInPatientID, 0);
     this.Controls.SetChildIndex(this.m_lsvPatientName, 0);
     this.Controls.SetChildIndex(this.m_lsvBedNO, 0);
     this.Controls.SetChildIndex(this.m_cmdSave, 0);
     this.Controls.SetChildIndex(this.m_GridRecord, 0);
     this.m_pnlNewBase.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.m_GridRecord)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1    = new System.Windows.Forms.DataVisualization.Charting.Legend();
     this.label9                 = new System.Windows.Forms.Label();
     this.panel1                 = new System.Windows.Forms.Panel();
     this.dataGrid               = new System.Windows.Forms.DataGrid();
     this.dataGridTableStyle1    = new System.Windows.Forms.DataGridTableStyle();
     this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.comboBoxGroupBy        = new System.Windows.Forms.ComboBox();
     this.label1                 = new System.Windows.Forms.Label();
     this.label15                = new System.Windows.Forms.Label();
     this.Chart1                 = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.label2                 = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).BeginInit();
     this.SuspendLayout();
     //
     // label9
     //
     this.label9.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                           | System.Windows.Forms.AnchorStyles.Right);
     this.label9.Font     = new System.Drawing.Font("Verdana", 11F);
     this.label9.Location = new System.Drawing.Point(16, 8);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(702, 40);
     this.label9.TabIndex = 0;
     this.label9.Text     = "This sample demonstrates how to bind to a data source by grouping values in a ser" +
                            "ies, using unique values from a specified field.";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.dataGrid,
         this.comboBoxGroupBy,
         this.label1,
         this.label15
     });
     this.panel1.Location = new System.Drawing.Point(432, 64);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(292, 288);
     this.panel1.TabIndex = 2;
     //
     // dataGrid
     //
     this.dataGrid.BackgroundColor = System.Drawing.Color.White;
     this.dataGrid.CaptionText     = "Original Data:";
     this.dataGrid.DataMember      = "";
     this.dataGrid.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.dataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGrid.Location        = new System.Drawing.Point(32, 40);
     this.dataGrid.Name            = "dataGrid";
     this.dataGrid.ReadOnly        = true;
     this.dataGrid.Size            = new System.Drawing.Size(248, 206);
     this.dataGrid.TabIndex        = 2;
     this.dataGrid.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1
     });
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.DataGrid = this.dataGrid;
     this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.dataGridTextBoxColumn1,
         this.dataGridTextBoxColumn2,
         this.dataGridTextBoxColumn3,
         this.dataGridTextBoxColumn4
     });
     this.dataGridTableStyle1.HeaderFont           = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.dataGridTableStyle1.HeaderForeColor      = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle1.MappingName          = "";
     this.dataGridTableStyle1.PreferredColumnWidth = 50;
     this.dataGridTableStyle1.RowHeadersVisible    = false;
     //
     // dataGridTextBoxColumn1
     //
     this.dataGridTextBoxColumn1.Format      = "";
     this.dataGridTextBoxColumn1.FormatInfo  = null;
     this.dataGridTextBoxColumn1.HeaderText  = "Name";
     this.dataGridTextBoxColumn1.MappingName = "Name";
     this.dataGridTextBoxColumn1.Width       = 50;
     //
     // dataGridTextBoxColumn2
     //
     this.dataGridTextBoxColumn2.Format      = "";
     this.dataGridTextBoxColumn2.FormatInfo  = null;
     this.dataGridTextBoxColumn2.HeaderText  = "Year";
     this.dataGridTextBoxColumn2.MappingName = "Year";
     this.dataGridTextBoxColumn2.Width       = 40;
     //
     // dataGridTextBoxColumn3
     //
     this.dataGridTextBoxColumn3.Format      = "#0.00";
     this.dataGridTextBoxColumn3.FormatInfo  = null;
     this.dataGridTextBoxColumn3.HeaderText  = "Sales";
     this.dataGridTextBoxColumn3.MappingName = "Sales";
     this.dataGridTextBoxColumn3.Width       = 70;
     //
     // dataGridTextBoxColumn4
     //
     this.dataGridTextBoxColumn4.Format      = "#0.00";
     this.dataGridTextBoxColumn4.FormatInfo  = null;
     this.dataGridTextBoxColumn4.HeaderText  = "Commission";
     this.dataGridTextBoxColumn4.MappingName = "Commissions";
     this.dataGridTextBoxColumn4.Width       = 84;
     //
     // comboBoxGroupBy
     //
     this.comboBoxGroupBy.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxGroupBy.Items.AddRange(new object[] {
         "Name",
         "Year"
     });
     this.comboBoxGroupBy.Location              = new System.Drawing.Point(168, 8);
     this.comboBoxGroupBy.Name                  = "comboBoxGroupBy";
     this.comboBoxGroupBy.Size                  = new System.Drawing.Size(112, 22);
     this.comboBoxGroupBy.TabIndex              = 1;
     this.comboBoxGroupBy.SelectedIndexChanged += new System.EventHandler(this.comboBoxGroupBy_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(40, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(128, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Group &Series By:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label15
     //
     this.label15.Location = new System.Drawing.Point(64, 426);
     this.label15.Name     = "label15";
     this.label15.TabIndex = 5;
     this.label15.Text     = "Border Size:";
     //
     // Chart1
     //
     this.Chart1.BackColor                   = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(223)), ((System.Byte)(193)));
     this.Chart1.BackGradientStyle           = System.Windows.Forms.DataVisualization.Charting.GradientStyle.TopBottom;
     this.Chart1.BorderlineColor             = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(64)), ((System.Byte)(1)));
     this.Chart1.BorderlineDashStyle         = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     this.Chart1.BorderlineWidth             = 2;
     this.Chart1.BorderSkin.SkinStyle        = System.Windows.Forms.DataVisualization.Charting.BorderSkinStyle.Emboss;
     chartArea1.Area3DStyle.IsClustered      = true;
     chartArea1.Area3DStyle.Perspective      = 10;
     chartArea1.Area3DStyle.IsRightAngleAxes = false;
     chartArea1.Area3DStyle.WallWidth        = 0;
     chartArea1.Area3DStyle.Inclination      = 15;
     chartArea1.Area3DStyle.Rotation         = 10;
     chartArea1.AxisX.LabelAutoFitStyle      = (((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                 | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap);
     chartArea1.AxisX.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisX.LabelStyle.Interval    = 1;
     chartArea1.AxisX.LineColor              = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisX.MajorGrid.Interval     = 0;
     chartArea1.AxisX.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisX.MajorTickMark.Enabled  = false;
     chartArea1.AxisX.MajorTickMark.Interval = 1;
     chartArea1.AxisY.LabelAutoFitStyle      = (((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                 | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)
                                                | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap);
     chartArea1.AxisY.LabelStyle.Font        = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     chartArea1.AxisY.LineColor              = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY.MajorGrid.Interval     = 0;
     chartArea1.AxisY.MajorGrid.LineColor    = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.AxisY.MajorTickMark.Enabled  = false;
     chartArea1.AxisY.MajorTickMark.Interval = 1;
     chartArea1.AxisY.IsStartedFromZero      = false;
     chartArea1.BackColor          = System.Drawing.Color.Transparent;
     chartArea1.BackSecondaryColor = System.Drawing.Color.White;
     chartArea1.BorderColor        = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     chartArea1.BorderDashStyle    = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name            = "Default";
     chartArea1.Position.Auto   = false;
     chartArea1.Position.Height = 73F;
     chartArea1.Position.Width  = 89.43796F;
     chartArea1.Position.X      = 4.824818F;
     chartArea1.Position.Y      = 10F;
     chartArea1.ShadowColor     = System.Drawing.Color.Transparent;
     this.Chart1.ChartAreas.Add(chartArea1);
     legend1.Alignment     = System.Drawing.StringAlignment.Center;
     legend1.IsTextAutoFit = false;
     legend1.BackColor     = System.Drawing.Color.Transparent;
     legend1.Docking       = System.Windows.Forms.DataVisualization.Charting.Docking.Bottom;
     legend1.Font          = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold);
     legend1.LegendStyle   = System.Windows.Forms.DataVisualization.Charting.LegendStyle.Row;
     legend1.Name          = "Default";
     this.Chart1.Legends.Add(legend1);
     this.Chart1.Location = new System.Drawing.Point(16, 56);
     this.Chart1.Name     = "Chart1";
     this.Chart1.Palette  = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.BrightPastel;
     this.Chart1.Size     = new System.Drawing.Size(412, 296);
     this.Chart1.TabIndex = 1;
     //
     // label2
     //
     this.label2.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                           | System.Windows.Forms.AnchorStyles.Right);
     this.label2.Font     = new System.Drawing.Font("Verdana", 11F);
     this.label2.Location = new System.Drawing.Point(24, 360);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(702, 34);
     this.label2.TabIndex = 3;
     this.label2.Text     = "Series are created automatically, based on the number of unique values in the gro" +
                            "uping field.";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // DataBindCrosstab
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label2,
         this.Chart1,
         this.panel1,
         this.label9
     });
     this.Font  = new System.Drawing.Font("Verdana", 9F);
     this.Name  = "DataBindCrosstab";
     this.Size  = new System.Drawing.Size(728, 480);
     this.Load += new System.EventHandler(this.ArrayBinding_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.Chart1)).EndInit();
     this.ResumeLayout(false);
 }
Пример #58
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.statusBar1             = new System.Windows.Forms.StatusBar();
     this.statusBarPanel1        = new System.Windows.Forms.StatusBarPanel();
     this.statusBarPanel2        = new System.Windows.Forms.StatusBarPanel();
     this.myDataGrid1            = new myDataGrid.myDataGrid();
     this.dataGridTableStyle1    = new System.Windows.Forms.DataGridTableStyle();
     this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn5 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn6 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn7 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn8 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.butprint  = new System.Windows.Forms.Button();
     this.butquit   = new System.Windows.Forms.Button();
     this.butdel    = new System.Windows.Forms.Button();
     this.butsave   = new System.Windows.Forms.Button();
     this.txtdm     = new System.Windows.Forms.TextBox();
     this.label1    = new System.Windows.Forms.Label();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 454);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.statusBarPanel1,
         this.statusBarPanel2
     });
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(768, 31);
     this.statusBar1.TabIndex   = 0;
     this.statusBar1.Text       = "statusBar1";
     //
     // statusBarPanel1
     //
     this.statusBarPanel1.Name  = "statusBarPanel1";
     this.statusBarPanel1.Width = 300;
     //
     // statusBarPanel2
     //
     this.statusBarPanel2.Name  = "statusBarPanel2";
     this.statusBarPanel2.Width = 1001;
     //
     // myDataGrid1
     //
     this.myDataGrid1.BackgroundColor = System.Drawing.Color.White;
     this.myDataGrid1.CaptionVisible  = false;
     this.myDataGrid1.DataMember      = "";
     this.myDataGrid1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.myDataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.myDataGrid1.Location        = new System.Drawing.Point(3, 21);
     this.myDataGrid1.Name            = "myDataGrid1";
     this.myDataGrid1.Size            = new System.Drawing.Size(762, 347);
     this.myDataGrid1.TabIndex        = 0;
     this.myDataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1
     });
     this.myDataGrid1.myKeyDown += new myDataGrid.myDelegate(this.myDataGrid1_myKeyDown);
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.AllowSorting = false;
     this.dataGridTableStyle1.DataGrid     = this.myDataGrid1;
     this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.dataGridTextBoxColumn1,
         this.dataGridTextBoxColumn2,
         this.dataGridTextBoxColumn3,
         this.dataGridTextBoxColumn4,
         this.dataGridTextBoxColumn5,
         this.dataGridTextBoxColumn6,
         this.dataGridTextBoxColumn7,
         this.dataGridTextBoxColumn8
     });
     this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     //
     // dataGridTextBoxColumn1
     //
     this.dataGridTextBoxColumn1.Format     = "";
     this.dataGridTextBoxColumn1.FormatInfo = null;
     this.dataGridTextBoxColumn1.HeaderText = "序号";
     this.dataGridTextBoxColumn1.Width      = 40;
     //
     // dataGridTextBoxColumn2
     //
     this.dataGridTextBoxColumn2.Format     = "";
     this.dataGridTextBoxColumn2.FormatInfo = null;
     this.dataGridTextBoxColumn2.HeaderText = "名称";
     this.dataGridTextBoxColumn2.Width      = 150;
     //
     // dataGridTextBoxColumn3
     //
     this.dataGridTextBoxColumn3.Format     = "";
     this.dataGridTextBoxColumn3.FormatInfo = null;
     this.dataGridTextBoxColumn3.HeaderText = "拼音码";
     this.dataGridTextBoxColumn3.Width      = 70;
     //
     // dataGridTextBoxColumn4
     //
     this.dataGridTextBoxColumn4.Format     = "";
     this.dataGridTextBoxColumn4.FormatInfo = null;
     this.dataGridTextBoxColumn4.HeaderText = "五笔码";
     this.dataGridTextBoxColumn4.Width      = 70;
     //
     // dataGridTextBoxColumn5
     //
     this.dataGridTextBoxColumn5.Format     = "";
     this.dataGridTextBoxColumn5.FormatInfo = null;
     this.dataGridTextBoxColumn5.HeaderText = "联系电话";
     this.dataGridTextBoxColumn5.Width      = 70;
     //
     // dataGridTextBoxColumn6
     //
     this.dataGridTextBoxColumn6.Format     = "";
     this.dataGridTextBoxColumn6.FormatInfo = null;
     this.dataGridTextBoxColumn6.HeaderText = "联系人";
     this.dataGridTextBoxColumn6.Width      = 60;
     //
     // dataGridTextBoxColumn7
     //
     this.dataGridTextBoxColumn7.Format     = "";
     this.dataGridTextBoxColumn7.FormatInfo = null;
     this.dataGridTextBoxColumn7.HeaderText = "地址";
     this.dataGridTextBoxColumn7.Width      = 75;
     //
     // dataGridTextBoxColumn8
     //
     this.dataGridTextBoxColumn8.Format     = "";
     this.dataGridTextBoxColumn8.FormatInfo = null;
     this.dataGridTextBoxColumn8.HeaderText = "ID";
     this.dataGridTextBoxColumn8.NullText   = "";
     this.dataGridTextBoxColumn8.Width      = 0;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.butprint);
     this.groupBox1.Controls.Add(this.butquit);
     this.groupBox1.Controls.Add(this.butdel);
     this.groupBox1.Controls.Add(this.butsave);
     this.groupBox1.Controls.Add(this.txtdm);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.groupBox1.Location = new System.Drawing.Point(0, 371);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(768, 83);
     this.groupBox1.TabIndex = 4;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "操作";
     //
     // butprint
     //
     this.butprint.Location = new System.Drawing.Point(725, 21);
     this.butprint.Name     = "butprint";
     this.butprint.Size     = new System.Drawing.Size(128, 41);
     this.butprint.TabIndex = 6;
     this.butprint.Text     = "打印(&P)";
     this.butprint.Click   += new System.EventHandler(this.butprint_Click);
     //
     // butquit
     //
     this.butquit.Location = new System.Drawing.Point(864, 21);
     this.butquit.Name     = "butquit";
     this.butquit.Size     = new System.Drawing.Size(128, 41);
     this.butquit.TabIndex = 4;
     this.butquit.Text     = "退出(&Q)";
     this.butquit.Click   += new System.EventHandler(this.butquit_Click);
     //
     // butdel
     //
     this.butdel.Location = new System.Drawing.Point(587, 21);
     this.butdel.Name     = "butdel";
     this.butdel.Size     = new System.Drawing.Size(128, 41);
     this.butdel.TabIndex = 3;
     this.butdel.Text     = "删除(&D)";
     this.butdel.Click   += new System.EventHandler(this.butdel_Click);
     //
     // butsave
     //
     this.butsave.Location = new System.Drawing.Point(448, 21);
     this.butsave.Name     = "butsave";
     this.butsave.Size     = new System.Drawing.Size(128, 41);
     this.butsave.TabIndex = 2;
     this.butsave.Text     = "保存(&S)";
     this.butsave.Click   += new System.EventHandler(this.butsave_Click);
     //
     // txtdm
     //
     this.txtdm.Location = new System.Drawing.Point(91, 31);
     this.txtdm.Name     = "txtdm";
     this.txtdm.Size     = new System.Drawing.Size(256, 25);
     this.txtdm.TabIndex = 1;
     this.txtdm.KeyUp   += new System.Windows.Forms.KeyEventHandler(this.txtdm_KeyUp);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(51, 36);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(64, 21);
     this.label1.TabIndex = 0;
     this.label1.Text     = "查找";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.myDataGrid1);
     this.groupBox2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.groupBox2.Location = new System.Drawing.Point(0, 0);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(768, 371);
     this.groupBox2.TabIndex = 5;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "供货单位信息";
     //
     // Frmghdw
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(8, 18);
     this.ClientSize        = new System.Drawing.Size(768, 485);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.statusBar1);
     this.Name        = "Frmghdw";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load       += new System.EventHandler(this.Frmsccj_Load);
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #59
0
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     base.Load      += new System.EventHandler(frmFoodCost_Load);
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmFoodCost));
     this.ImageList1                = new System.Windows.Forms.ImageList(this.components);
     this.Button1                   = new System.Windows.Forms.Button();
     this.Button1.Click            += new System.EventHandler(this.Button1_Click);
     this.Button2                   = new System.Windows.Forms.Button();
     this.Button2.Click            += new System.EventHandler(this.Button2_Click);
     this.TreeView1                 = new System.Windows.Forms.TreeView();
     this.TreeView1.ItemDrag       += new System.Windows.Forms.ItemDragEventHandler(this.TreeView1_ItemDrag);
     this.TreeView1.DoubleClick    += new System.EventHandler(this.TreeView1_DoubleClick);
     this.dgFoodCostList            = new System.Windows.Forms.DataGrid();
     this.dgFoodCostList.DragEnter += new System.Windows.Forms.DragEventHandler(this.DataGrid1_DragEnter);
     this.dgFoodCostList.DragDrop  += new System.Windows.Forms.DragEventHandler(this.DataGrid1_DragDrop);
     this.DataGridTableStyle1       = new System.Windows.Forms.DataGridTableStyle();
     this.DataGridTextBoxColumn1    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn2    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn3    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn4    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn5    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn6    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.Label1         = new System.Windows.Forms.Label();
     this.Button4        = new System.Windows.Forms.Button();
     this.Label8         = new System.Windows.Forms.Label();
     this.Button5        = new System.Windows.Forms.Button();
     this.Button5.Click += new System.EventHandler(this.Button5_Click);
     this.GroupBox1      = new System.Windows.Forms.GroupBox();
     this.Button3        = new System.Windows.Forms.Button();
     this.TextBox3       = new System.Windows.Forms.TextBox();
     this.TextBox2       = new System.Windows.Forms.TextBox();
     this.NumericUpDown3 = new System.Windows.Forms.NumericUpDown();
     this.NumericUpDown2 = new System.Windows.Forms.NumericUpDown();
     this.TextBox1       = new System.Windows.Forms.TextBox();
     this.NumericUpDown1 = new System.Windows.Forms.NumericUpDown();
     this.Label7         = new System.Windows.Forms.Label();
     this.Label6         = new System.Windows.Forms.Label();
     this.Label5         = new System.Windows.Forms.Label();
     this.Label4         = new System.Windows.Forms.Label();
     this.Label3         = new System.Windows.Forms.Label();
     this.Label2         = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize) this.dgFoodCostList).BeginInit();
     this.GroupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown3).BeginInit();
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown2).BeginInit();
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown1).BeginInit();
     this.SuspendLayout();
     //
     //ImageList1
     //
     this.ImageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.ImageList1.ImageStream      = (System.Windows.Forms.ImageListStreamer)(resources.GetObject("ImageList1.ImageStream"));
     this.ImageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     //Button1
     //
     this.Button1.Location = new System.Drawing.Point(320, 392);
     this.Button1.Name     = "Button1";
     this.Button1.TabIndex = 4;
     this.Button1.Text     = "删除(&D)";
     //
     //Button2
     //
     this.Button2.Location = new System.Drawing.Point(400, 392);
     this.Button2.Name     = "Button2";
     this.Button2.TabIndex = 5;
     this.Button2.Text     = "清空(&L)";
     //
     //TreeView1
     //
     this.TreeView1.HideSelection      = false;
     this.TreeView1.ImageList          = this.ImageList1;
     this.TreeView1.Location           = new System.Drawing.Point(8, 8);
     this.TreeView1.Name               = "TreeView1";
     this.TreeView1.SelectedImageIndex = 1;
     this.TreeView1.Size               = new System.Drawing.Size(208, 372);
     this.TreeView1.TabIndex           = 0;
     //
     //dgFoodCostList
     //
     this.dgFoodCostList.AllowDrop            = true;
     this.dgFoodCostList.AlternatingBackColor = System.Drawing.Color.GhostWhite;
     this.dgFoodCostList.BackColor            = System.Drawing.Color.GhostWhite;
     this.dgFoodCostList.BackgroundColor      = System.Drawing.Color.Lavender;
     this.dgFoodCostList.CaptionBackColor     = System.Drawing.Color.RoyalBlue;
     this.dgFoodCostList.CaptionForeColor     = System.Drawing.Color.White;
     this.dgFoodCostList.CaptionVisible       = false;
     this.dgFoodCostList.DataMember           = "";
     this.dgFoodCostList.FlatMode             = true;
     this.dgFoodCostList.Font                = new System.Drawing.Font("Tahoma", 8.0F);
     this.dgFoodCostList.ForeColor           = System.Drawing.Color.MidnightBlue;
     this.dgFoodCostList.GridLineColor       = System.Drawing.Color.RoyalBlue;
     this.dgFoodCostList.HeaderBackColor     = System.Drawing.Color.MidnightBlue;
     this.dgFoodCostList.HeaderFont          = new System.Drawing.Font("Tahoma", 8.0F, System.Drawing.FontStyle.Bold);
     this.dgFoodCostList.HeaderForeColor     = System.Drawing.Color.Lavender;
     this.dgFoodCostList.LinkColor           = System.Drawing.Color.Teal;
     this.dgFoodCostList.Location            = new System.Drawing.Point(224, 255);
     this.dgFoodCostList.Name                = "dgFoodCostList";
     this.dgFoodCostList.ParentRowsBackColor = System.Drawing.Color.Lavender;
     this.dgFoodCostList.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
     this.dgFoodCostList.ReadOnly            = true;
     this.dgFoodCostList.SelectionBackColor  = System.Drawing.Color.Teal;
     this.dgFoodCostList.SelectionForeColor  = System.Drawing.Color.PaleGreen;
     this.dgFoodCostList.Size                = new System.Drawing.Size(351, 125);
     this.dgFoodCostList.TabIndex            = 2;
     this.dgFoodCostList.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] { this.DataGridTableStyle1 });
     //
     //DataGridTableStyle1
     //
     this.DataGridTableStyle1.DataGrid = this.dgFoodCostList;
     this.DataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] { this.DataGridTextBoxColumn1, this.DataGridTextBoxColumn2, this.DataGridTextBoxColumn3, this.DataGridTextBoxColumn4, this.DataGridTextBoxColumn5, this.DataGridTextBoxColumn6 });
     this.DataGridTableStyle1.HeaderFont      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.DataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.DataGridTableStyle1.MappingName     = "FoodCostList";
     //
     //DataGridTextBoxColumn1
     //
     this.DataGridTextBoxColumn1.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn1.Format      = "";
     this.DataGridTextBoxColumn1.FormatInfo  = null;
     this.DataGridTextBoxColumn1.HeaderText  = "原料编码";
     this.DataGridTextBoxColumn1.MappingName = "materialcode";
     this.DataGridTextBoxColumn1.Width       = 75;
     //
     //DataGridTextBoxColumn2
     //
     this.DataGridTextBoxColumn2.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn2.Format      = "";
     this.DataGridTextBoxColumn2.FormatInfo  = null;
     this.DataGridTextBoxColumn2.HeaderText  = "名称";
     this.DataGridTextBoxColumn2.MappingName = "materialname";
     this.DataGridTextBoxColumn2.Width       = 80;
     //
     //DataGridTextBoxColumn3
     //
     this.DataGridTextBoxColumn3.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn3.Format      = "";
     this.DataGridTextBoxColumn3.FormatInfo  = null;
     this.DataGridTextBoxColumn3.HeaderText  = "组成类别";
     this.DataGridTextBoxColumn3.MappingName = "type";
     this.DataGridTextBoxColumn3.Width       = 60;
     //
     //DataGridTextBoxColumn4
     //
     this.DataGridTextBoxColumn4.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn4.Format      = "";
     this.DataGridTextBoxColumn4.FormatInfo  = null;
     this.DataGridTextBoxColumn4.HeaderText  = "单位";
     this.DataGridTextBoxColumn4.MappingName = "unit";
     this.DataGridTextBoxColumn4.Width       = 60;
     //
     //DataGridTextBoxColumn5
     //
     this.DataGridTextBoxColumn5.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn5.Format      = "";
     this.DataGridTextBoxColumn5.FormatInfo  = null;
     this.DataGridTextBoxColumn5.HeaderText  = "数量";
     this.DataGridTextBoxColumn5.MappingName = "quantity";
     this.DataGridTextBoxColumn5.Width       = 65;
     //
     //DataGridTextBoxColumn6
     //
     this.DataGridTextBoxColumn6.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn6.Format      = "";
     this.DataGridTextBoxColumn6.FormatInfo  = null;
     this.DataGridTextBoxColumn6.HeaderText  = "损耗率";
     this.DataGridTextBoxColumn6.MappingName = "lossability";
     this.DataGridTextBoxColumn6.Width       = 65;
     //
     //Label1
     //
     this.Label1.Font      = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Label1.ForeColor = System.Drawing.Color.Navy;
     this.Label1.Location  = new System.Drawing.Point(224, 8);
     this.Label1.Name      = "Label1";
     this.Label1.Size      = new System.Drawing.Size(351, 23);
     this.Label1.TabIndex  = 7;
     //
     //Button4
     //
     this.Button4.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.Button4.Location     = new System.Drawing.Point(480, 392);
     this.Button4.Name         = "Button4";
     this.Button4.TabIndex     = 6;
     this.Button4.Text         = "关闭(&C)";
     //
     //Label8
     //
     this.Label8.Location  = new System.Drawing.Point(224, 232);
     this.Label8.Name      = "Label8";
     this.Label8.TabIndex  = 8;
     this.Label8.Text      = "原料组成:";
     this.Label8.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     //Button5
     //
     this.Button5.Location = new System.Drawing.Point(240, 392);
     this.Button5.Name     = "Button5";
     this.Button5.TabIndex = 3;
     this.Button5.Text     = "添加(&A)";
     //
     //GroupBox1
     //
     this.GroupBox1.Controls.Add(this.Button3);
     this.GroupBox1.Controls.Add(this.TextBox3);
     this.GroupBox1.Controls.Add(this.TextBox2);
     this.GroupBox1.Controls.Add(this.NumericUpDown3);
     this.GroupBox1.Controls.Add(this.NumericUpDown2);
     this.GroupBox1.Controls.Add(this.TextBox1);
     this.GroupBox1.Controls.Add(this.NumericUpDown1);
     this.GroupBox1.Controls.Add(this.Label7);
     this.GroupBox1.Controls.Add(this.Label6);
     this.GroupBox1.Controls.Add(this.Label5);
     this.GroupBox1.Controls.Add(this.Label4);
     this.GroupBox1.Controls.Add(this.Label3);
     this.GroupBox1.Controls.Add(this.Label2);
     this.GroupBox1.Location = new System.Drawing.Point(224, 32);
     this.GroupBox1.Name     = "GroupBox1";
     this.GroupBox1.Size     = new System.Drawing.Size(352, 200);
     this.GroupBox1.TabIndex = 1;
     this.GroupBox1.TabStop  = false;
     this.GroupBox1.Text     = "菜品成本一般信息";
     //
     //Button3
     //
     this.Button3.Location = new System.Drawing.Point(232, 170);
     this.Button3.Name     = "Button3";
     this.Button3.Size     = new System.Drawing.Size(96, 23);
     this.Button3.TabIndex = 6;
     this.Button3.Text     = "保存信息(&S)";
     //
     //TextBox3
     //
     this.TextBox3.Location   = new System.Drawing.Point(104, 115);
     this.TextBox3.Multiline  = true;
     this.TextBox3.Name       = "TextBox3";
     this.TextBox3.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.TextBox3.Size       = new System.Drawing.Size(240, 48);
     this.TextBox3.TabIndex   = 5;
     this.TextBox3.Text       = "";
     //
     //TextBox2
     //
     this.TextBox2.Location   = new System.Drawing.Point(104, 64);
     this.TextBox2.Multiline  = true;
     this.TextBox2.Name       = "TextBox2";
     this.TextBox2.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.TextBox2.Size       = new System.Drawing.Size(240, 48);
     this.TextBox2.TabIndex   = 4;
     this.TextBox2.Text       = "";
     //
     //NumericUpDown3
     //
     this.NumericUpDown3.Location  = new System.Drawing.Point(264, 40);
     this.NumericUpDown3.Name      = "NumericUpDown3";
     this.NumericUpDown3.Size      = new System.Drawing.Size(80, 21);
     this.NumericUpDown3.TabIndex  = 3;
     this.NumericUpDown3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     //NumericUpDown2
     //
     this.NumericUpDown2.Location  = new System.Drawing.Point(104, 40);
     this.NumericUpDown2.Name      = "NumericUpDown2";
     this.NumericUpDown2.Size      = new System.Drawing.Size(80, 21);
     this.NumericUpDown2.TabIndex  = 2;
     this.NumericUpDown2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     //TextBox1
     //
     this.TextBox1.Location = new System.Drawing.Point(264, 16);
     this.TextBox1.Name     = "TextBox1";
     this.TextBox1.Size     = new System.Drawing.Size(80, 21);
     this.TextBox1.TabIndex = 1;
     this.TextBox1.Text     = "";
     //
     //NumericUpDown1
     //
     this.NumericUpDown1.Location  = new System.Drawing.Point(104, 16);
     this.NumericUpDown1.Name      = "NumericUpDown1";
     this.NumericUpDown1.Size      = new System.Drawing.Size(80, 21);
     this.NumericUpDown1.TabIndex  = 0;
     this.NumericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     //Label7
     //
     this.Label7.Location  = new System.Drawing.Point(16, 115);
     this.Label7.Name      = "Label7";
     this.Label7.Size      = new System.Drawing.Size(88, 23);
     this.Label7.TabIndex  = 12;
     this.Label7.Text      = "特点及标准:";
     this.Label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label6
     //
     this.Label6.Location  = new System.Drawing.Point(32, 64);
     this.Label6.Name      = "Label6";
     this.Label6.Size      = new System.Drawing.Size(72, 23);
     this.Label6.TabIndex  = 11;
     this.Label6.Text      = "加工方法:";
     this.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label5
     //
     this.Label5.Location  = new System.Drawing.Point(192, 40);
     this.Label5.Name      = "Label5";
     this.Label5.Size      = new System.Drawing.Size(72, 23);
     this.Label5.TabIndex  = 10;
     this.Label5.Text      = "其它费用:";
     this.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label4
     //
     this.Label4.Location  = new System.Drawing.Point(32, 40);
     this.Label4.Name      = "Label4";
     this.Label4.Size      = new System.Drawing.Size(72, 23);
     this.Label4.TabIndex  = 9;
     this.Label4.Text      = "燃料费:";
     this.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label3
     //
     this.Label3.Location  = new System.Drawing.Point(192, 16);
     this.Label3.Name      = "Label3";
     this.Label3.Size      = new System.Drawing.Size(72, 23);
     this.Label3.TabIndex  = 8;
     this.Label3.Text      = "规格:";
     this.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label2
     //
     this.Label2.Location  = new System.Drawing.Point(32, 16);
     this.Label2.Name      = "Label2";
     this.Label2.Size      = new System.Drawing.Size(72, 23);
     this.Label2.TabIndex  = 7;
     this.Label2.Text      = "份量:";
     this.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //frmFoodCost
     //
     this.AcceptButton      = this.Button4;
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.CancelButton      = this.Button4;
     this.ClientSize        = new System.Drawing.Size(584, 428);
     this.Controls.Add(this.Button5);
     this.Controls.Add(this.Label8);
     this.Controls.Add(this.Button4);
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.dgFoodCostList);
     this.Controls.Add(this.TreeView1);
     this.Controls.Add(this.Button2);
     this.Controls.Add(this.Button1);
     this.Controls.Add(this.GroupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = (System.Drawing.Icon)(resources.GetObject("$this.Icon"));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "frmFoodCost";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "菜品成本卡";
     ((System.ComponentModel.ISupportInitialize) this.dgFoodCostList).EndInit();
     this.GroupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown3).EndInit();
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown2).EndInit();
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown1).EndInit();
     this.ResumeLayout(false);
 }
Пример #60
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.statusBar1              = new System.Windows.Forms.StatusBar();
     this.statusBarPanel1         = new System.Windows.Forms.StatusBarPanel();
     this.statusBarPanel2         = new System.Windows.Forms.StatusBarPanel();
     this.myDataGrid1             = new myDataGrid.myDataGrid();
     this.dataGridTableStyle1     = new System.Windows.Forms.DataGridTableStyle();
     this.dataGridTextBoxColumn1  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn4  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn2  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn3  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn5  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn13 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn6  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn7  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn8  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn9  = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn10 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn11 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn12 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.butsave = new System.Windows.Forms.Button();
     this.txtdm   = new System.Windows.Forms.TextBox();
     this.label1  = new System.Windows.Forms.Label();
     this.panel1  = new System.Windows.Forms.Panel();
     this.butcx   = new System.Windows.Forms.Button();
     this.button1 = new System.Windows.Forms.Button();
     this.chkjj   = new System.Windows.Forms.CheckBox();
     this.chkkcl  = new System.Windows.Forms.CheckBox();
     this.cmbyplx = new System.Windows.Forms.ComboBox();
     this.cmbjx   = new System.Windows.Forms.ComboBox();
     this.chkjx   = new System.Windows.Forms.CheckBox();
     this.label2  = new System.Windows.Forms.Label();
     this.panel2  = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).BeginInit();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 461);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.statusBarPanel1,
         this.statusBarPanel2
     });
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(768, 24);
     this.statusBar1.TabIndex   = 0;
     this.statusBar1.Text       = "statusBar1";
     //
     // statusBarPanel1
     //
     this.statusBarPanel1.Width = 300;
     //
     // statusBarPanel2
     //
     this.statusBarPanel2.Width = 1001;
     //
     // myDataGrid1
     //
     this.myDataGrid1.BackgroundColor = System.Drawing.Color.White;
     this.myDataGrid1.CaptionVisible  = false;
     this.myDataGrid1.DataMember      = "";
     this.myDataGrid1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.myDataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.myDataGrid1.Location        = new System.Drawing.Point(0, 0);
     this.myDataGrid1.Name            = "myDataGrid1";
     this.myDataGrid1.Size            = new System.Drawing.Size(768, 389);
     this.myDataGrid1.TabIndex        = 0;
     this.myDataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1
     });
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.AllowSorting = false;
     this.dataGridTableStyle1.DataGrid     = this.myDataGrid1;
     this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.dataGridTextBoxColumn1,
         this.dataGridTextBoxColumn4,
         this.dataGridTextBoxColumn2,
         this.dataGridTextBoxColumn3,
         this.dataGridTextBoxColumn5,
         this.dataGridTextBoxColumn13,
         this.dataGridTextBoxColumn6,
         this.dataGridTextBoxColumn7,
         this.dataGridTextBoxColumn8,
         this.dataGridTextBoxColumn9,
         this.dataGridTextBoxColumn10,
         this.dataGridTextBoxColumn11,
         this.dataGridTextBoxColumn12
     });
     this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle1.MappingName     = "";
     //
     // dataGridTextBoxColumn1
     //
     this.dataGridTextBoxColumn1.Format      = "";
     this.dataGridTextBoxColumn1.FormatInfo  = null;
     this.dataGridTextBoxColumn1.HeaderText  = "序号";
     this.dataGridTextBoxColumn1.MappingName = "";
     this.dataGridTextBoxColumn1.ReadOnly    = true;
     this.dataGridTextBoxColumn1.Width       = 40;
     //
     // dataGridTextBoxColumn4
     //
     this.dataGridTextBoxColumn4.Format      = "";
     this.dataGridTextBoxColumn4.FormatInfo  = null;
     this.dataGridTextBoxColumn4.HeaderText  = "货号";
     this.dataGridTextBoxColumn4.MappingName = "";
     this.dataGridTextBoxColumn4.NullText    = "";
     this.dataGridTextBoxColumn4.ReadOnly    = true;
     this.dataGridTextBoxColumn4.Width       = 70;
     //
     // dataGridTextBoxColumn2
     //
     this.dataGridTextBoxColumn2.Format      = "";
     this.dataGridTextBoxColumn2.FormatInfo  = null;
     this.dataGridTextBoxColumn2.HeaderText  = "品名";
     this.dataGridTextBoxColumn2.MappingName = "";
     this.dataGridTextBoxColumn2.NullText    = "";
     this.dataGridTextBoxColumn2.ReadOnly    = true;
     this.dataGridTextBoxColumn2.Width       = 150;
     //
     // dataGridTextBoxColumn3
     //
     this.dataGridTextBoxColumn3.Format      = "";
     this.dataGridTextBoxColumn3.FormatInfo  = null;
     this.dataGridTextBoxColumn3.HeaderText  = "商品名";
     this.dataGridTextBoxColumn3.MappingName = "";
     this.dataGridTextBoxColumn3.NullText    = "";
     this.dataGridTextBoxColumn3.ReadOnly    = true;
     this.dataGridTextBoxColumn3.Width       = 150;
     //
     // dataGridTextBoxColumn5
     //
     this.dataGridTextBoxColumn5.Format      = "";
     this.dataGridTextBoxColumn5.FormatInfo  = null;
     this.dataGridTextBoxColumn5.HeaderText  = "规格";
     this.dataGridTextBoxColumn5.MappingName = "";
     this.dataGridTextBoxColumn5.NullText    = "";
     this.dataGridTextBoxColumn5.ReadOnly    = true;
     this.dataGridTextBoxColumn5.Width       = 70;
     //
     // dataGridTextBoxColumn13
     //
     this.dataGridTextBoxColumn13.Format      = "";
     this.dataGridTextBoxColumn13.FormatInfo  = null;
     this.dataGridTextBoxColumn13.HeaderText  = "厂家";
     this.dataGridTextBoxColumn13.MappingName = "";
     this.dataGridTextBoxColumn13.NullText    = "";
     this.dataGridTextBoxColumn13.Width       = 70;
     //
     // dataGridTextBoxColumn6
     //
     this.dataGridTextBoxColumn6.Format      = "";
     this.dataGridTextBoxColumn6.FormatInfo  = null;
     this.dataGridTextBoxColumn6.HeaderText  = "进价";
     this.dataGridTextBoxColumn6.MappingName = "";
     this.dataGridTextBoxColumn6.NullText    = "";
     this.dataGridTextBoxColumn6.Width       = 60;
     //
     // dataGridTextBoxColumn7
     //
     this.dataGridTextBoxColumn7.Format      = "";
     this.dataGridTextBoxColumn7.FormatInfo  = null;
     this.dataGridTextBoxColumn7.HeaderText  = "批发价";
     this.dataGridTextBoxColumn7.MappingName = "";
     this.dataGridTextBoxColumn7.NullText    = "";
     this.dataGridTextBoxColumn7.ReadOnly    = true;
     this.dataGridTextBoxColumn7.Width       = 60;
     //
     // dataGridTextBoxColumn8
     //
     this.dataGridTextBoxColumn8.Format      = "";
     this.dataGridTextBoxColumn8.FormatInfo  = null;
     this.dataGridTextBoxColumn8.HeaderText  = "零售价";
     this.dataGridTextBoxColumn8.MappingName = "";
     this.dataGridTextBoxColumn8.NullText    = "";
     this.dataGridTextBoxColumn8.ReadOnly    = true;
     this.dataGridTextBoxColumn8.Width       = 60;
     //
     // dataGridTextBoxColumn9
     //
     this.dataGridTextBoxColumn9.Format      = "";
     this.dataGridTextBoxColumn9.FormatInfo  = null;
     this.dataGridTextBoxColumn9.HeaderText  = "总库存";
     this.dataGridTextBoxColumn9.MappingName = "";
     this.dataGridTextBoxColumn9.ReadOnly    = true;
     this.dataGridTextBoxColumn9.Width       = 60;
     //
     // dataGridTextBoxColumn10
     //
     this.dataGridTextBoxColumn10.Format      = "";
     this.dataGridTextBoxColumn10.FormatInfo  = null;
     this.dataGridTextBoxColumn10.HeaderText  = "单位";
     this.dataGridTextBoxColumn10.MappingName = "";
     this.dataGridTextBoxColumn10.NullText    = "";
     this.dataGridTextBoxColumn10.ReadOnly    = true;
     this.dataGridTextBoxColumn10.Width       = 40;
     //
     // dataGridTextBoxColumn11
     //
     this.dataGridTextBoxColumn11.Format      = "";
     this.dataGridTextBoxColumn11.FormatInfo  = null;
     this.dataGridTextBoxColumn11.HeaderText  = "药库有货";
     this.dataGridTextBoxColumn11.MappingName = "";
     this.dataGridTextBoxColumn11.NullText    = "";
     this.dataGridTextBoxColumn11.ReadOnly    = true;
     this.dataGridTextBoxColumn11.Width       = 75;
     //
     // dataGridTextBoxColumn12
     //
     this.dataGridTextBoxColumn12.Format      = "";
     this.dataGridTextBoxColumn12.FormatInfo  = null;
     this.dataGridTextBoxColumn12.HeaderText  = "cjid";
     this.dataGridTextBoxColumn12.MappingName = "";
     this.dataGridTextBoxColumn12.NullText    = "";
     this.dataGridTextBoxColumn12.ReadOnly    = true;
     this.dataGridTextBoxColumn12.Width       = 0;
     //
     // butsave
     //
     this.butsave.Location = new System.Drawing.Point(584, 16);
     this.butsave.Name     = "butsave";
     this.butsave.Size     = new System.Drawing.Size(80, 32);
     this.butsave.TabIndex = 2;
     this.butsave.Text     = "保存(&S)";
     this.butsave.Click   += new System.EventHandler(this.butsave_Click);
     //
     // txtdm
     //
     this.txtdm.Location  = new System.Drawing.Point(360, 20);
     this.txtdm.Name      = "txtdm";
     this.txtdm.Size      = new System.Drawing.Size(128, 21);
     this.txtdm.TabIndex  = 1;
     this.txtdm.Text      = "";
     this.txtdm.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtdm_KeyPress);
     this.txtdm.KeyUp    += new System.Windows.Forms.KeyEventHandler(this.txtdm_KeyUp);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(328, 24);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(48, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "查找";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.butcx);
     this.panel1.Controls.Add(this.button1);
     this.panel1.Controls.Add(this.chkjj);
     this.panel1.Controls.Add(this.chkkcl);
     this.panel1.Controls.Add(this.cmbyplx);
     this.panel1.Controls.Add(this.cmbjx);
     this.panel1.Controls.Add(this.chkjx);
     this.panel1.Controls.Add(this.txtdm);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.butsave);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(768, 72);
     this.panel1.TabIndex = 5;
     //
     // butcx
     //
     this.butcx.Location = new System.Drawing.Point(496, 16);
     this.butcx.Name     = "butcx";
     this.butcx.Size     = new System.Drawing.Size(80, 32);
     this.butcx.TabIndex = 39;
     this.butcx.Text     = "查询(&C)";
     this.butcx.Click   += new System.EventHandler(this.butcx_Click);
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(672, 16);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(88, 32);
     this.button1.TabIndex = 38;
     this.button1.Text     = "执行修改(&S)";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // chkjj
     //
     this.chkjj.Location        = new System.Drawing.Point(168, 32);
     this.chkjj.Name            = "chkjj";
     this.chkjj.Size            = new System.Drawing.Size(144, 24);
     this.chkjj.TabIndex        = 37;
     this.chkjj.Text            = "显示没有进价的药品";
     this.chkjj.CheckedChanged += new System.EventHandler(this.chkjj_CheckedChanged);
     //
     // chkkcl
     //
     this.chkkcl.Location        = new System.Drawing.Point(168, 7);
     this.chkkcl.Name            = "chkkcl";
     this.chkkcl.Size            = new System.Drawing.Size(160, 24);
     this.chkkcl.TabIndex        = 36;
     this.chkkcl.Text            = "显示库存不为零的药品";
     this.chkkcl.CheckedChanged += new System.EventHandler(this.chkjj_CheckedChanged);
     //
     // cmbyplx
     //
     this.cmbyplx.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbyplx.Location      = new System.Drawing.Point(80, 8);
     this.cmbyplx.Name          = "cmbyplx";
     this.cmbyplx.Size          = new System.Drawing.Size(88, 20);
     this.cmbyplx.TabIndex      = 35;
     //
     // cmbjx
     //
     this.cmbjx.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbjx.Enabled       = false;
     this.cmbjx.Location      = new System.Drawing.Point(80, 40);
     this.cmbjx.Name          = "cmbjx";
     this.cmbjx.Size          = new System.Drawing.Size(88, 20);
     this.cmbjx.TabIndex      = 33;
     //
     // chkjx
     //
     this.chkjx.Location        = new System.Drawing.Point(8, 38);
     this.chkjx.Name            = "chkjx";
     this.chkjx.Size            = new System.Drawing.Size(88, 24);
     this.chkjx.TabIndex        = 34;
     this.chkjx.Text            = "药品剂型";
     this.chkjx.CheckedChanged += new System.EventHandler(this.chkjx_CheckedChanged);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(24, 11);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(72, 24);
     this.label2.TabIndex = 40;
     this.label2.Text     = "药品类型";
     //
     // panel2
     //
     this.panel2.Controls.Add(this.myDataGrid1);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Location = new System.Drawing.Point(0, 72);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(768, 389);
     this.panel2.TabIndex = 6;
     //
     // FrmJJwh
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(768, 485);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.statusBar1);
     this.Name        = "FrmJJwh";
     this.Text        = "维护药品进货价";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load       += new System.EventHandler(this.Frmsccj_Load);
     this.Activated  += new System.EventHandler(this.FrmJJwh_Activated);
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.myDataGrid1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.ResumeLayout(false);
 }