private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null) { OnWipInfoDistributing obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as OnWipInfoDistributing; if (string.Compare(this.ViewState["Status"].ToString(), "NG", true) == 0) { obj.ProductStatus = TSStatus.TSStatus_New; } DataRow row = DtSource.NewRow(); row["WipHistroy"] = ""; row["RunningCard"] = obj.RunningCard; row["ProductStatus"] = this.languageComponent1.GetString(obj.ProductStatus); row["OperationResult"] = WebQueryHelper.GetOPResultLinkHtml2(this.languageComponent1, obj.Action, obj.RunningCard, obj.RunningCardSequence, this.txtMoCodeQuery.Text, this.Request.Url.PathAndQuery); row["IDMergeRule"] = obj.IDMergeRule; row["MaintainDate"] = FormatHelper.ToDateString(obj.MaintainDate); row["MaintainTime"] = FormatHelper.ToTimeString(obj.MaintainTime); row["Operator"] = obj.MaintainUser; row["translateCard"] = obj.TranslateCard; (e as DomainObjectToGridRowEventArgsNew).GridRow = row; } }
private string GetOPTypeString(ProductionProcess obj) { return(WebQueryHelper.GetOPResultLinkHtml2(this.languageComponent1, obj.Action, obj.RCard, obj.RCardSequence, obj.MOCode, string.Format( "FITProductionProcessQP.aspx?RCARD={0}&RCARDSEQ={1}&MOCODE={2}", this.txtSN.Value, int.Parse(this.txtSeq.Value), this.txtMO.Value ) )); }
private string GetOPTypeString(ItemTracing obj) { return(WebQueryHelper.GetOPResultLinkHtml2( this.languageComponent1, obj.LastAction, obj.RCard, obj.RCardSeq, obj.MOCode, "FItemTracingQP.aspx" )); // return WebQueryHelper.GetOPResultLinkHtml( // this.languageComponent1, // obj.OPType, // obj.RCard, // obj.RCardSeq, // obj.MOCode, // "FItemTracingQP.aspx" // //"FItemTracingQP.aspx?RCARDFROM=" + this.txtStartSnQuery.Value + "&RCARDTO=" + this.txtEndSnQuery.Value // ) ; }
protected override DataRow GetGridRow(object obj) { decimal seq; try { seq = decimal.Parse(this.GetRequestParam("RCARDSEQ")); } catch { seq = -1; } //return new Infragistics.WebUI.UltraWebGrid.UltraGridRow( // new object[]{ // string.Empty, // ((ItemTracing)obj).RCard, // this.languageComponent1.GetString( ((ItemTracing)obj).ItemStatus ), // ((ItemTracing)obj).OPCode.ToString(), // WebQueryHelper.GetOPResultLinkHtml2( // this.languageComponent1, // ((ItemTracing)obj).LastAction, // ((ItemTracing)obj).RCard, // ((ItemTracing)obj).RCardSeq , // this.txtMO.Value, // string.Format( // "FITMODetailQP.aspx?RCARD={0}&RCARDSEQ={1}&MOCODE={2}", // ((ItemTracing)obj).RCard, // ((ItemTracing)obj).RCardSeq, // this.txtMO.Value // ) // ), // "", // ((ItemTracing)obj).SegmentCode.ToString(), // ((ItemTracing)obj).LineCode.ToString(), // ((ItemTracing)obj).ResCode.ToString(), // FormatHelper.ToDateString(((ItemTracing)obj).MaintainDate), // FormatHelper.ToTimeString(((ItemTracing)obj).MaintainTime), // ((ItemTracing)obj).MaintainUser.ToString(), // ((ItemTracing)obj).OPType.ToString(), // ((ItemTracing)obj).TCard // } // ); DataRow row = this.DtSource.NewRow(); row["IT_ProductionProcess"] = string.Empty; row["IT_SN"] = ((ItemTracing)obj).RCard; row["IT_ItemStatus"] = this.languageComponent1.GetString(((ItemTracing)obj).ItemStatus); row["IT_OP"] = ((ItemTracing)obj).OPCode.ToString(); row["IT_OPType"] = WebQueryHelper.GetOPResultLinkHtml2( this.languageComponent1, ((ItemTracing)obj).LastAction, ((ItemTracing)obj).RCard, ((ItemTracing)obj).RCardSeq, this.txtMO.Value, string.Format( "FITMODetailQP.aspx?RCARD={0}&RCARDSEQ={1}&MOCODE={2}", ((ItemTracing)obj).RCard, ((ItemTracing)obj).RCardSeq, this.txtMO.Value ) ); row["IT_Segment"] = ((ItemTracing)obj).SegmentCode.ToString(); row["IT_Line"] = ((ItemTracing)obj).LineCode.ToString(); row["IT_Resource"] = ((ItemTracing)obj).ResCode.ToString(); row["IT_MaintainDate"] = FormatHelper.ToDateString(((ItemTracing)obj).MaintainDate); row["IT_MaintainTime"] = FormatHelper.ToTimeString(((ItemTracing)obj).MaintainTime); row["IT_MaintainUser"] = ((ItemTracing)obj).MaintainUser.ToString(); row["IT_OPType_ORI"] = ((ItemTracing)obj).OPType.ToString(); row["IT_TCARD"] = ((ItemTracing)obj).TCard; return(row); }