示例#1
0
        protected override DataRow GetGridRow2(object obj)
        {
            //return new Infragistics.WebUI.UltraWebGrid.UltraGridRow(
            //    new object[]{
            //                    WebQueryHelper.GetProductionProcessHtml(
            //                        ((SNInfo)obj).TranslateCard,
            //                        -1,
            //                        string.Empty,
            //                        this.rawURL,
            //                        true),
            //                    WebQueryHelper.GetProductionProcessHtml(
            //                        ((SNInfo)obj).RunningCard,
            //                        -1,
            //                        string.Empty,
            //                        this.rawURL,
            //                        true)
            //    );
            DataRow row = this.DtSource2.NewRow();

            row["IT_SN_old"] = WebQueryHelper.GetProductionProcessHtml(
                ((SNInfo)obj).TranslateCard,
                -1,
                string.Empty,
                this.rawURL,
                true);
            row["IT_SN_new"] = WebQueryHelper.GetProductionProcessHtml(
                ((SNInfo)obj).RunningCard,
                -1,
                string.Empty,
                this.rawURL,
                true);
            return(row);
        }
        protected override DataRow GetGridRow3(object obj)
        {
            //return new Infragistics.WebUI.UltraWebGrid.UltraGridRow(
            //    new object[]{
            //                    WebQueryHelper.GetProductionProcessHtml(
            //                        ((RunningItemInfo)obj).MCARD.ToString(),
            //                        -1,
            //                        string.Empty,
            //                        this.rawURL ,
            //                        ((RunningItemInfo)obj).CanTracing
            //                    ) ,
            //                    "",
            //                    "",
            //                    ((RunningItemInfo)obj).ItemCode.ToString(),
            //                    ((RunningItemInfo)obj).Customer.ToString(),
            //                    ((RunningItemInfo)obj).CustomerItem.ToString(),
            //                    ((RunningItemInfo)obj).LotNO.ToString(),
            //                    ((RunningItemInfo)obj).DateCode,
            //                    ((RunningItemInfo)obj).Version.ToString(),
            //                    ((RunningItemInfo)obj).PCBA.ToString(),
            //                    ((RunningItemInfo)obj).BIOS.ToString()
            //                }
            //    );
            DataRow row = this.DtSource3.NewRow();

            row["IT_ItemSN"] = WebQueryHelper.GetProductionProcessHtml(
                ((RunningItemInfo)obj).MCARD.ToString(),
                -1,
                string.Empty,
                this.rawURL,
                ((RunningItemInfo)obj).CanTracing
                );
            row["IT_TracingAble"]   = "";
            row["IT_ItemInFactory"] = ((RunningItemInfo)obj).ItemCode.ToString();
            row["IT_Customer"]      = ((RunningItemInfo)obj).Customer.ToString();
            row["IT_CustomerItem"]  = ((RunningItemInfo)obj).CustomerItem.ToString();
            row["IT_ProductLot"]    = ((RunningItemInfo)obj).LotNO.ToString();
            row["IT_ProductDate"]   = ((RunningItemInfo)obj).DateCode;
            row["IT_SPEC"]          = ((RunningItemInfo)obj).Version.ToString();
            row["IT_PCBAVer"]       = ((RunningItemInfo)obj).PCBA.ToString();
            row["IT_BIOSVer"]       = ((RunningItemInfo)obj).BIOS.ToString();
            return(row);
        }