⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 piecharxsxxmanage.cs

📁 汽车销售公司ERP进销存系统 汽车销售公司ERP进销存系统
💻 CS
📖 第 1 页 / 共 5 页
字号:
			this.cbtablename.TabIndex = 41;
			// 
			// cbtype
			// 
			this.cbtype.EditValue = "数量";
			this.cbtype.Location = new System.Drawing.Point(704, 24);
			this.cbtype.Name = "cbtype";
			// 
			// cbtype.Properties
			// 
			this.cbtype.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
			this.cbtype.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
																										   new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
			this.cbtype.Properties.Items.AddRange(new object[] {
																   "数量",
																   "价格"});
			this.cbtype.Size = new System.Drawing.Size(56, 21);
			this.cbtype.TabIndex = 42;
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(648, 24);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(56, 23);
			this.label12.TabIndex = 43;
			this.label12.Text = "统计类型";
			this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label15
			// 
			this.label15.Location = new System.Drawing.Point(504, 24);
			this.label15.Name = "label15";
			this.label15.Size = new System.Drawing.Size(56, 23);
			this.label15.TabIndex = 44;
			this.label15.Text = "统计表格";
			this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// simpleButton2
			// 
			this.simpleButton2.Location = new System.Drawing.Point(768, 16);
			this.simpleButton2.Name = "simpleButton2";
			this.simpleButton2.Size = new System.Drawing.Size(40, 32);
			this.simpleButton2.TabIndex = 45;
			this.simpleButton2.Text = "确定";
			this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click);
			// 
			// PieCharXsxxManage
			// 
			this.Controls.Add(this.groupControl1);
			this.Controls.Add(this.m_buttonPrint);
			this.Controls.Add(this.m_numericUpDownAlpha);
			this.Controls.Add(this.label13);
			this.Controls.Add(this.checkBoxFitChart);
			this.Controls.Add(this.numericUpDownEdgeLineWidth);
			this.Controls.Add(this.label11);
			this.Controls.Add(this.groupBox4);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.comboBoxEdgeType);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.numericUpDownPieHeight);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.numericUpDownAngle);
			this.Controls.Add(this.m_panelDrawing);
			this.Controls.Add(this.groupBox6);
			this.Name = "PieCharXsxxManage";
			this.Size = new System.Drawing.Size(864, 528);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownAngle)).EndInit();
			this.groupBox1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement6)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement5)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement4)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement3)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement2)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownPieHeight)).EndInit();
			this.groupBox4.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownBottomMargin)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownTopMargin)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownRightMargin)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownLeftMargin)).EndInit();
			this.groupBox6.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownEdgeLineWidth)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.m_numericUpDownAlpha)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.groupControl1)).EndInit();
			this.groupControl1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
			this.panelControl1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.cbtablename.Properties)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.cbtype.Properties)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion


		#region Get properties

		private Color[] Colors 
		{
			get 
			{
				XsxxBLL xbll=new XsxxBLL();
				ArrayList colors = new ArrayList();
				if(xbll.getXsxxCount(DateTime.Today.Year,1,this.cbtablename.Text,"数量")>0)
					colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor1.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,2,this.cbtablename.Text,"数量")>0)
					colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor2.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,3,this.cbtablename.Text,"数量")>0)	
				colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor3.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,4,this.cbtablename.Text,"数量")>0)
					colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor4.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,5,this.cbtablename.Text,"数量")>0)	
				colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor5.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,6,this.cbtablename.Text,"数量")>0)
					colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor6.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,7,this.cbtablename.Text,"数量")>0)
					colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor7.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,8,this.cbtablename.Text,"数量")>0)
					colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value,buttonColor8.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,9,this.cbtablename.Text,"数量")>0)
					colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor9.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,10,this.cbtablename.Text,"数量")>0)
					colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor10.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,11,this.cbtablename.Text,"数量")>0)
					colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor11.BackColor));
				if(xbll.getXsxxCount(DateTime.Today.Year,12,this.cbtablename.Text,"数量")>0)
					colors.Add(Color.FromArgb((int)m_numericUpDownAlpha.Value, buttonColor12.BackColor));
				return (Color[])colors.ToArray(typeof(Color));
			}
		}

		private decimal[] Values 
		{
			get 
			{
				XsxxBLL xbll=new XsxxBLL();
				ArrayList values = new ArrayList();
				if(xbll.getXsxxCount(DateTime.Today.Year,1,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,1,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,2,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,2,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,3,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,3,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,4,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,4,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,5,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,5,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,6,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,6,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,7,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,7,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,8,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,8,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,9,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,9,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,10,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,10,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,11,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,11,this.cbtablename.Text,this.cbtype.Text));
				if(xbll.getXsxxCount(DateTime.Today.Year,12,this.cbtablename.Text,"数量")>0)
					values.Add(xbll.getXsxxCount(DateTime.Today.Year,12,this.cbtablename.Text,this.cbtype.Text));
				return (decimal[])values.ToArray(typeof(decimal));
			}
		}

		private float[] Displacements 
		{
			get 
			{
				XsxxBLL xbll=new XsxxBLL();
				ArrayList displacements = new ArrayList();
				if(xbll.getXsxxCount(DateTime.Today.Year,1,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement1.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,2,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement2.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,3,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement3.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,4,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement4.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,5,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement5.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,6,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement6.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,7,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement1.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,8,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement2.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,9,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement3.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,10,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement4.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,11,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement5.Value);
				if(xbll.getXsxxCount(DateTime.Today.Year,12,this.cbtablename.Text,"数量")>0)
					displacements.Add((float)numericUpDownDisplacement6.Value);
				return (float[])displacements.ToArray(typeof(float));
			}
		}

		private string[] Texts 
		{
			get 
			{
				XsxxBLL xbll=new XsxxBLL();
				ArrayList texts = new ArrayList();
				if(xbll.getXsxxCount(DateTime.Today.Year,1,this.cbtablename.Text,"数量")>0)
					texts.Add("一月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,1,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,2,this.cbtablename.Text,"数量")>0)
					texts.Add("二月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,2,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,3,this.cbtablename.Text,"数量")>0)
					texts.Add("三月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,3,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,4,this.cbtablename.Text,"数量")>0)
					texts.Add("四月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,4,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,5,this.cbtablename.Text,"数量")>0)
					texts.Add("五月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,5,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,6,this.cbtablename.Text,"数量")>0)
					texts.Add("六月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,6,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,7,this.cbtablename.Text,"数量")>0)
					texts.Add("七月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,7,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,8,this.cbtablename.Text,"数量")>0)
					texts.Add("八月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,8,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,9,this.cbtablename.Text,"数量")>0)
					texts.Add("九月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,9,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,10,this.cbtablename.Text,"数量")>0)
					texts.Add("十月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,10,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,11,this.cbtablename.Text,"数量")>0)
					texts.Add("十一月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,11,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				if(xbll.getXsxxCount(DateTime.Today.Year,12,this.cbtablename.Text,"数量")>0)
					texts.Add("十二月("+Decimal.Round(xbll.getXsxxCount(DateTime.Today.Year,12,this.cbtablename.Text,this.cbtype.Text)/xbll.getTotalCount(DateTime.Today.Year,this.cbtablename.Text,this.cbtype.Text)*100,2)+"%)");
				return (string[])texts.ToArray(typeof(string));
			}
		}

		private string[] ToolTips 
		{
			get 
			{ 
				XsxxBLL xbll=new XsxxBLL();
				ArrayList toolTips = new ArrayList();
				if(xbll.getXsxxCount(DateTime.Today.Year,1,this.cbtablename.Text,"数量")>0)
					toolTips.Add(xbll.getXsxxCount(DateTime.Today.Year,1,this.cbtablename.Text,this.cbtype.Text).ToString());
				if(xbll.getXsxxCount(DateTime.Today.Year,2,this.cbtablename.Text,"数量")>0)
					toolTips.Add(xbll.getXsxxCount(DateTime.Today.Year,2,this.cbtablename.Text,this.cbtype.Text).ToString());
				if(xbll.getXsxxCount(DateTime.Today.Year,3,this.cbtablename.Text,"数量")>0)	
					toolTips.Add(xbll.getXsxxCount(DateTime.Today.Year,3,this.cbtablename.Text,this.cbtype.Text).ToString());
				if(xbll.getXsxxCount(DateTime.Today.Year,4,this.cbtablename.Text,"数量")>0)
				toolTips.Add(xbll.getXsxxCount(DateTime.Today.Year,4,this.cbtablename.Text,this.cbtype.Text).ToString());
				if(xbll.getXsxxCount(DateTime.Today.Year,5,this.cbtablename.Text,"数量")>0)
					toolTips.Add(xbll.getXsxxCount(DateTime.Today.Year,5,this.cbtablename.Text,this.cbtype.Text).ToString());
				if(xbll.getXsxxCount(DateTime.Today.Year,6,this.cbtablename.Text,"数量")>0)
					toolTips.Add(xbll.getXsxxCount(DateTime.Today.Year,6,this.cbtablename.Text,this.cbtype.Text).ToString());
				if(xbll.getXsxxCount(DateTime.Today.Year,7,this.cbtablename.Text,"数量")>0)
					toolTips.Add(xbll.getXsxxCount(DateTime.Today.Year,7,this.cbtablename.Text,this.cbtype.Text).ToString());
				if(xbll.getXsx

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -