| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using CoreFS.CA06;
- using Infragistics.UltraChart.Shared.Styles;
- namespace Core.LZMes.Client.UIK.UIK05
- {
- public partial class UIK050051 : FrmBase
- {
- public UIK050051()
- {
- InitializeComponent();
- }
- string sTime_1 = null;
- string eTime_1 = null;
- string thick_1 = null;
- string flat_1 = null;
- string setthick_1 = null;
- string coilid_1 = null;
- public string thick
- {
- set
- {
- thick_1 = value;
- }
- }
- public string flat
- {
- set
- {
- flat_1 = value;
- }
- }
- public string sTime
- {
- set
- {
- sTime_1 = value;
- }
- }
- public string eTime
- {
- set
- {
- eTime_1 = value;
- }
- }
- public string coilid
- {
- set
- {
- coilid_1 = value;
- }
- }
- public string setthick
- {
- set
- {
- setthick_1 = value;
- }
- }
- private void UIK050051_Load(object sender, EventArgs e)
- {
-
- CoreClientParam ccp = new CoreClientParam();
- ccp.ServerName = "UIK.UIK05.UIK050010";
- ccp.MethodName = "DoQueryCoilThick";
- ccp.ServerParams = new object[] { coilid_1 };
- ccp.SourceDataTable = this.dataSet2.Tables[0];
- this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
- string COILTHICK1 = this.dataSet2.Tables[0].Rows[0]["COILTHICK1"].ToString();
- string COILTHICK2 = this.dataSet2.Tables[0].Rows[0]["COILTHICK2"].ToString();
- thick_1 = COILTHICK1 + COILTHICK2;
- flat_1 = this.dataSet2.Tables[0].Rows[0]["COILFLAT"].ToString();
- //DataRowCollection drc2 = this.dataSet2.Tables[0].Rows;
-
- DataTable table = new DataTable();
- // string str = "1.1480;0.9980;0.9895;0.9852;0.9825;0.9870;0.9845;0.9800;0.9839;0.9822;0.9840;0.9832;0.9852;0.9823;0.9880;0.9839;0.9877;0.9854;0.9826;0.9875;0.9830;0.9869;0.9834;0.9843;0.9854;0.9858;0.9840;0.9833;0.9861;0.9859;0.9863;0.9838;0.9832;0.9851;0.9867;0.9827;0.9855;0.9846;0.9855;0.9867;0.9843;0.9853;0.9821;0.9884;0.9833;0.9848;0.9847;0.9844;0.9845;0.9829;0.9851;0.9834;0.9855;0.9841;0.9870;0.9841;0.9852;0.9854;0.9846;0.9834;0.9842;0.9875;0.9845;0.9866;0.9833;0.9840;0.9856;0.9849;0.9826;0.9845;0.9845;0.9863;0.9876;0.9816;0.9860;0.9856;0.9881;0.9854;0.9862;0.9817;0.9854;0.9872;0.9838;0.9824;0.9817;0.9861;0.9847;0.9834;0.9846;0.9857;0.9877;0.9840;0.9841;0.9847;0.9882;0.9844;0.9851;0.9841;0.9820;0.9859;0.9885;0.9842;0.9854;0.9830;0.9861;0.9864;0.9846;0.9845;0.9841;0.9861;0.9839;0.9867;0.9832;0.9844;0.9883;0.9859;0.9874;0.9833;0.9849;0.9840;0.9849;0.9854;0.9873;0.9851;0.9845;0.9858;0.9848;0.9867;0.9847;0.9862;0.9818;0.9853;0.9859;0.9864;0.9842;0.9847;0.9871;0.9870;0.9855;0.9850;0.9838;0.9844;0.9872;0.9852;0.9851;0.9841;0.9857;0.9869;0.9838;0.9849;0.9845;0.9867;0.9854;0.9853;0.9844;0.9833;0.9849;0.9868;0.9878;0.9834;0.9831;0.9833;0.9867;0.9847;0.9850;0.9830;0.9857;0.9850;0.9861;0.9835;0.9813;0.9868;0.9840;0.9851;0.9811;0.9834;0.9853;0.9838;0.9843;0.9829;0.9850;0.9853;0.9857;0.9829;0.9854;0.9852;0.9874;0.9849;0.9831;0.9843;0.9837;0.9878;0.9830;0.9833;0.9845;0.9862;0.9849;0.9841;0.9835;0.9859;0.9871;0.9831;0.9831;0.9837;0.9866;0.9858;0.9823;0.9850;0.9858;0.9834;0.9846;0.9841;0.9844;0.9843;0.9831;0.9843;0.9823;0.9839;0.9850;0.9852;0.9836;0.9842;0.9856;0.9849;0.9872;0.9804;0.9847;0.9829;0.9885;0.9864;0.9845;0.9860;1.0273;0.9638;0.9721;0.9959;0.9938";
- string[] arr0 = thick_1.Split('"');
- string[] arr01 = arr0[1].Split(';');
- string[] arr1 = (from s in arr01 where !string.IsNullOrEmpty(s) select s).ToArray();
- //int columnno = this.dataSet1.Tables[0].Columns.Count;
- int columnno = arr1.Length;
- string[] thkdate = new string[columnno];
- for (int i = 0; i < columnno; i++)
- {
- table.Columns.Add((i * 10).ToString(), typeof(double));
- thkdate[i] = arr1[i];
- }
- object[] Data1 = new object[]
- {
- thkdate
- };
- for (int i = 0; i < Data1.Length; i++)
- {
- DataRow row = table.NewRow();
- row.ItemArray = (object[])Data1[i];
- table.Rows.Add(row);
- }
- this.ultraChart1.Data.DataSource = table;
- this.ultraChart1.Data.DataBind();
- this.ultraChart1.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.LineChart;
- this.ultraChart1.Axis.Y.Labels.ItemFormatString = "<DATA_VALUE:0.##>";
- this.ultraChart1.Tooltips.FormatString = "<ITEM_LABEL>m处:<DATA_VALUE:0.####>";
- this.ultraChart1.Axis.Y.TickmarkStyle = AxisTickStyle.DataInterval;
- this.ultraChart1.Axis.X.Labels.HorizontalAlign = System.Drawing.StringAlignment.Near;
- this.ultraChart1.Axis.X.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
- this.ultraChart1.Legend.Location = Infragistics.UltraChart.Shared.Styles.LegendLocation.Left;
- this.ultraChart1.Axis.Y.LineEndCapStyle = Infragistics.UltraChart.Shared.Styles.LineCapStyle.ArrowAnchor;
- this.ultraChart1.TitleTop.Text = "钢卷厚度";
- DataTable table1 = new DataTable();
- // string str = "1.1480;0.9980;0.9895;0.9852;0.9825;0.9870;0.9845;0.9800;0.9839;0.9822;0.9840;0.9832;0.9852;0.9823;0.9880;0.9839;0.9877;0.9854;0.9826;0.9875;0.9830;0.9869;0.9834;0.9843;0.9854;0.9858;0.9840;0.9833;0.9861;0.9859;0.9863;0.9838;0.9832;0.9851;0.9867;0.9827;0.9855;0.9846;0.9855;0.9867;0.9843;0.9853;0.9821;0.9884;0.9833;0.9848;0.9847;0.9844;0.9845;0.9829;0.9851;0.9834;0.9855;0.9841;0.9870;0.9841;0.9852;0.9854;0.9846;0.9834;0.9842;0.9875;0.9845;0.9866;0.9833;0.9840;0.9856;0.9849;0.9826;0.9845;0.9845;0.9863;0.9876;0.9816;0.9860;0.9856;0.9881;0.9854;0.9862;0.9817;0.9854;0.9872;0.9838;0.9824;0.9817;0.9861;0.9847;0.9834;0.9846;0.9857;0.9877;0.9840;0.9841;0.9847;0.9882;0.9844;0.9851;0.9841;0.9820;0.9859;0.9885;0.9842;0.9854;0.9830;0.9861;0.9864;0.9846;0.9845;0.9841;0.9861;0.9839;0.9867;0.9832;0.9844;0.9883;0.9859;0.9874;0.9833;0.9849;0.9840;0.9849;0.9854;0.9873;0.9851;0.9845;0.9858;0.9848;0.9867;0.9847;0.9862;0.9818;0.9853;0.9859;0.9864;0.9842;0.9847;0.9871;0.9870;0.9855;0.9850;0.9838;0.9844;0.9872;0.9852;0.9851;0.9841;0.9857;0.9869;0.9838;0.9849;0.9845;0.9867;0.9854;0.9853;0.9844;0.9833;0.9849;0.9868;0.9878;0.9834;0.9831;0.9833;0.9867;0.9847;0.9850;0.9830;0.9857;0.9850;0.9861;0.9835;0.9813;0.9868;0.9840;0.9851;0.9811;0.9834;0.9853;0.9838;0.9843;0.9829;0.9850;0.9853;0.9857;0.9829;0.9854;0.9852;0.9874;0.9849;0.9831;0.9843;0.9837;0.9878;0.9830;0.9833;0.9845;0.9862;0.9849;0.9841;0.9835;0.9859;0.9871;0.9831;0.9831;0.9837;0.9866;0.9858;0.9823;0.9850;0.9858;0.9834;0.9846;0.9841;0.9844;0.9843;0.9831;0.9843;0.9823;0.9839;0.9850;0.9852;0.9836;0.9842;0.9856;0.9849;0.9872;0.9804;0.9847;0.9829;0.9885;0.9864;0.9845;0.9860;1.0273;0.9638;0.9721;0.9959;0.9938";
- string[] ar0 = flat_1.Split('"');
- string[] ar01 = ar0[1].Split(';');
- string[] ar1 = (from s in ar01 where !string.IsNullOrEmpty(s) select s).ToArray();
- //int columnno = this.dataSet1.Tables[0].Columns.Count;
- int columnno1 = ar1.Length;
- string[] thkdate1 = new string[columnno1];
- for (int i = 0; i < columnno1; i++)
- {
- table1.Columns.Add((i * 10).ToString(), typeof(double));
- thkdate1[i] = ar1[i];
- }
- object[] Data2 = new object[]
- {
- //thkdate,
- thkdate1
- };
- for (int i = 0; i < Data2.Length; i++)
- {
- DataRow row = table1.NewRow();
- row.ItemArray = (object[])Data2[i];
- table1.Rows.Add(row);
- }
- this.ultraChart2.Data.DataSource = table1;
- this.ultraChart2.Data.DataBind();
- this.ultraChart2.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.LineChart;
- this.ultraChart2.Axis.Y.Labels.ItemFormatString = "<DATA_VALUE:0.##>";
- this.ultraChart2.Tooltips.FormatString = "<ITEM_LABEL>m处:<DATA_VALUE:0.####>";
- this.ultraChart2.Axis.Y.TickmarkStyle = AxisTickStyle.DataInterval;
- this.ultraChart2.Axis.X.Labels.HorizontalAlign = System.Drawing.StringAlignment.Near;
- this.ultraChart2.Axis.X.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
- this.ultraChart2.Legend.Location = Infragistics.UltraChart.Shared.Styles.LegendLocation.Left;
- this.ultraChart2.Axis.Y.LineEndCapStyle = Infragistics.UltraChart.Shared.Styles.LineCapStyle.ArrowAnchor;
- this.ultraChart2.TitleTop.Text = "板形";
- }
- }
- }
|