Exemple #1
0
        private void _gridSNHelper_DomainObjectToExportRow(object sender, EventArgs e)
        {
            if ((e as DomainObjectToExportRowEventArgs).DomainObject != null)
            {
                string[] objs = new string[] { "", "", "", "", "", "", "", "", "", "", };

                OQCDimentionValue ov = (e as DomainObjectToExportRowEventArgs).DomainObject as OQCDimentionValue;

                ArrayList list = GetDimentionValues(ov);
                foreach (OQCDimentionValue v in list)
                {
                    int i = 2;
                    objs[0] = v.RunningCard;
                    objs[1] = v.LOTNO;

                    if (v.ParamName.ToUpper() == DimentionParam.Length.ToUpper())
                    {
                        i += 0;
                    }
                    else if (v.ParamName.ToUpper() == DimentionParam.Width.ToUpper())
                    {
                        i += 1;
                    }
                    else if (v.ParamName.ToUpper() == DimentionParam.BoardHeight.ToUpper())
                    {
                        i += 2;
                    }
                    else if (v.ParamName.ToUpper() == DimentionParam.Height.ToUpper())
                    {
                        i += 3;
                    }
                    else if (v.ParamName.ToUpper() == DimentionParam.AllHeight.ToUpper())
                    {
                        i += 4;
                    }
                    else if (v.ParamName.ToUpper() == DimentionParam.Left2Right.ToUpper())
                    {
                        i += 5;
                    }
                    else if (v.ParamName.ToUpper() == DimentionParam.Left2Middle.ToUpper())
                    {
                        i += 6;
                    }
                    else if (v.ParamName.ToUpper() == DimentionParam.Right2Middle.ToUpper())
                    {
                        i += 7;
                    }

                    objs[i] = v.MinValue.ToString("0.00") + "/" + v.MaxValue.ToString("0.00") + "/" + v.ActualValue.ToString("0.00");
                }

                (e as DomainObjectToExportRowEventArgs).ExportRow = objs;
            }
        }
Exemple #2
0
        private ArrayList GetDimentionValues(OQCDimentionValue ov)
        {
            ArrayList list = new ArrayList();

            foreach (OQCDimentionValue v in this.DimentionValues)
            {
                if (ov.RunningCard == v.RunningCard && ov.LOTNO == v.LOTNO)
                {
                    list.Add(v);
                }
            }

            return(list);
        }