private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
        {
            if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
            {
                QDOTSDetails1 obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QDOTSDetails1;

                TSFacade tsFacade = new TSFacade(this.DataProvider);
                string   errorCauseGroupDescription = obj.ErrorCauseGroupCode;

                object errorCauseGroup = tsFacade.GetErrorCauseGroup(obj.ErrorCauseGroupCode);

                if (errorCauseGroup != null)
                {
                    errorCauseGroupDescription = ((ErrorCauseGroup)errorCauseGroup).ErrorCauseGroupDescription;
                }
                DataRow row = DtSource.NewRow();
                row["ErrorCodeGroup"]      = obj.ErrorCodeGroupDescription;
                row["ErrorCode"]           = obj.ErrorCodeDescription;
                row["ErrorCauseGroupCode"] = errorCauseGroupDescription;
                row["ErrorCause"]          = obj.ErrorCauseDescription;
                row["ErrorLocation"]       = obj.ErrorLocation;
                row["ErrorComponent"]      = obj.ErrorComponent;
                row["ErrorParts"]          = obj.ErrorParts;
                row["Solution"]            = obj.SolutionDescription;
                row["Duty"]         = obj.DutyDescription;
                row["SolutionMemo"] = obj.Solution;
                row["Memo"]         = obj.Memo;
                row["TsOperator"]   = obj.TSOperator;
                row["MaintainDate"] = FormatHelper.ToDateString(obj.TSDate);
                row["MaintainTime"] = FormatHelper.ToTimeString(obj.TSTime);
                (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
            }
        }
 private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
     {
         SOLDERPASTEPRO obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as SOLDERPASTEPRO;
         DataRow        row = DtSource.NewRow();
         row["SolderPasteID"] = obj.SOLDERPASTEID.ToString();
         row["UMOCode"]       = obj.MOCODE.ToString();
         row["USSCode"]       = obj.LINECODE.ToString();
         row["ReturnDate"]    = FormatHelper.ToDateString(obj.RETURNDATE);
         row["ReturnTime"]    = FormatHelper.ToTimeString(obj.RETURNTIME);
         row["ReturnUser"]    = obj.RETRUNUSER.ToString();
         row["ReturnTimer"]   = TimeSpanString(obj.RETURNCOUNTTIME);
         row["MixDate"]       = FormatHelper.ToDateString(obj.AGITATEDATE);
         row["MixTime"]       = FormatHelper.ToTimeString(obj.AGITATETIME);
         row["MixUser"]       = obj.AGITAEUSER.ToString();
         row["UnopenTimer"]   = TimeSpanString(obj.VEILCOUNTTIME);
         row["OpenDate"]      = FormatHelper.ToDateString(obj.UNVEILMDATE);
         row["OpenTime"]      = FormatHelper.ToTimeString(obj.UNVEILTIME);
         row["OpenUser"]      = obj.UNVEILUSER.ToString();
         row["OpenTimer"]     = TimeSpanString(obj.UNVEILCOUNTTIME);
         row["ReflowDate"]    = FormatHelper.ToDateString(obj.RESAVEDATE);
         row["ReflowTime"]    = FormatHelper.ToTimeString(obj.RESAVETIME);
         row["ReflowUser"]    = obj.RESAVEUSER.ToString();
         row["Status"]        = this.languageComponent1.GetString(obj.STATUS.ToString());
         row["Meno"]          = obj.MEMO.ToString();
         row["MUSER"]         = obj.MUSER.ToString();
         row["MDATE"]         = FormatHelper.ToDateString(obj.MDATE);
         row["MTIME"]         = FormatHelper.ToTimeString(obj.MTIME);
         (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
     }
 }
Exemple #3
0
 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;
     }
 }
Exemple #4
0
 private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
     {
         QDOTSRecord obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QDOTSRecord;
         DataRow     row = DtSource.NewRow();
         row["SN"]                 = obj.SN;
         row["SNSeq"]              = obj.RunningCardSequence;
         row["TsState"]            = this.languageComponent1.GetString(obj.TsState);
         row["Detail"]             = "";
         row["ChangedItemDetails"] = "";
         row["ModelCode"]          = obj.ModelCode;
         row["ItemCode"]           = obj.ItemCode;
         row["MoCode"]             = obj.MoCode;
         row["NGDate"]             = FormatHelper.ToDateString(obj.SourceResourceDate);
         row["NGTime"]             = FormatHelper.ToTimeString(obj.SourceResourceTime);
         row["SourceResource"]     = obj.SourceResource;
         row["SouceResourceDate"]  = FormatHelper.ToDateString(obj.RepaireDate);
         row["SouceResourceTime"]  = FormatHelper.ToTimeString(obj.RepaireTime);
         row["RepaireResource"]    = obj.RepaireResource;
         row["Ts_TSUser"]          = obj.TSUser;
         row["DestResource"]       = obj.DestResource;
         (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
     }
 }
        protected void SetColumnDown(object sender, ImageClickEventArgs e)
        {
            if (ActiveRowIndex == null)
            {
                return;
            }
            int activeRowIndex = (int)ActiveRowIndex;

            DataRow row1    = DtSource.Rows[activeRowIndex - 1];
            DataRow tempRow = DtSource.NewRow();

            tempRow["ColumnName"]  = row1["ColumnName"];
            tempRow["DisplayDesc"] = row1["DisplayDesc"];
            tempRow["TotalType"]   = row1["TotalType"];
            row1["ColumnName"]     = DtSource.Rows[activeRowIndex]["ColumnName"];
            row1["DisplayDesc"]    = DtSource.Rows[activeRowIndex]["DisplayDesc"];
            row1["TotalType"]      = DtSource.Rows[activeRowIndex]["TotalType"];
            DataRow row2 = DtSource.Rows[activeRowIndex];

            row2["ColumnName"]          = tempRow["ColumnName"];
            row2["DisplayDesc"]         = tempRow["DisplayDesc"];
            row2["TotalType"]           = tempRow["TotalType"];
            this.gridWebGrid.DataSource = DtSource;
            this.gridWebGrid.DataBind();
        }
        protected void SetColumnUp(object sender, ImageClickEventArgs e)
        {
            if (ActiveRowIndex == null)
            {
                return;
            }
            int activeRowIndex = (int)ActiveRowIndex;
            //if (activeRowIndex == 0)
            //    return;
            DataRow row1    = DtSource.Rows[activeRowIndex];
            DataRow tempRow = DtSource.NewRow();

            tempRow["ColumnName"]  = row1["ColumnName"];
            tempRow["DisplayDesc"] = row1["DisplayDesc"];
            tempRow["FilterType"]  = row1["FilterType"];
            tempRow["InputUIType"] = row1["InputUIType"];
            row1["ColumnName"]     = DtSource.Rows[activeRowIndex + 1]["ColumnName"];
            row1["DisplayDesc"]    = DtSource.Rows[activeRowIndex + 1]["DisplayDesc"];
            row1["FilterType"]     = DtSource.Rows[activeRowIndex + 1]["FilterType"];
            row1["InputUIType"]    = DtSource.Rows[activeRowIndex + 1]["InputUIType"];
            DataRow row2 = DtSource.Rows[activeRowIndex + 1];

            row2["ColumnName"]          = tempRow["ColumnName"];
            row2["DisplayDesc"]         = tempRow["DisplayDesc"];
            row2["FilterType"]          = tempRow["FilterType"];
            row2["InputUIType"]         = tempRow["InputUIType"];
            this.gridWebGrid.DataSource = DtSource;
            this.gridWebGrid.DataBind();
        }
Exemple #7
0
        protected override DataRow GetGridRow(object obj)
        {
            RptMOCloseRate rptMOCloseRate = (RptMOCloseRate)obj;

            string dateString = rptMOCloseRate.Year.ToString() + "/";

            if (this.rblByTimeTypeQuery.SelectedValue == NewReportByTimeType.Week)
            {
                dateString += rptMOCloseRate.Week.ToString();
            }
            else
            {
                dateString += rptMOCloseRate.Month.ToString();
            }

            DataRow row = DtSource.NewRow();

            row["TimeDimension"]        = dateString;
            row["BeginningOpenMOCount"] = rptMOCloseRate.FirstPQty.ToString();
            row["NewOpenMOCount"]       = rptMOCloseRate.OpenQty.ToString();
            row["NewCloseMOCount"]      = rptMOCloseRate.CloseQty.ToString();
            row["ClosingOpenMOCount"]   = rptMOCloseRate.EndPQty.ToString();
            row["MOCloseRate"]          = rptMOCloseRate.CloseRate.ToString("0.00%");
            return(row);
        }
Exemple #8
0
 private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
     {
         ArmorPlateContol obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as ArmorPlateContol;
         DataRow          row = DtSource.NewRow();
         row["ArmorPlateID"]   = obj.ArmorPlateID.ToString();
         row["BasePlateCode"]  = obj.BasePlateCode.ToString();
         row["CurrentVersion"] = obj.Version.ToString();
         row["TensionA"]       = obj.TensionA.ToString();
         row["TensionB"]       = obj.TensionB.ToString();
         row["TensionC"]       = obj.TensionC.ToString();
         row["TensionD"]       = obj.TensionD.ToString();
         row["TensionE"]       = obj.TensionE.ToString();
         row["UMOCode"]        = obj.UsedMOCode.ToString();
         row["USSCode"]        = obj.UsedSSCode.ToString();
         row["UUser"]          = obj.UsedUser.ToString();
         row["UDate"]          = FormatHelper.ToDateString(obj.UsedDate);
         row["UTime"]          = FormatHelper.ToTimeString(obj.UsedTime);
         row["UsedTimes"]      = obj.UsedTimesInMO.ToString("##.##");
         row["ReUser"]         = obj.ReturnUser.ToString();
         row["ReDate"]         = FormatHelper.ToDateString(obj.ReturnDate);
         row["ReTime"]         = FormatHelper.ToTimeString(obj.ReturnTime);
         (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
     }
 }
Exemple #9
0
        protected override DataRow GetGridRow(object obj)
        {
            DataRow row = DtSource.NewRow();

            row["IT_ProductionProcess"] = "";
            row["INNODetail"]           = "";
            row["KeypartsDetail"]       = "";
            row["MaterialModelCode"]    = ((ItemTracingQuery)obj).MaterialModelCode;
            row["ItemCode"]             = ((ItemTracingQuery)obj).ItemCode;
            row["IT_SN"]           = ((ItemTracingQuery)obj).RCard;
            row["IT_TCard"]        = ((ItemTracingQuery)obj).TCard;
            row["BigLine"]         = ((ItemTracingQuery)obj).BigStepSequenceCode;
            row["IT_MOCode"]       = ((ItemTracingQuery)obj).MOCode;
            row["IT_MOLink"]       = "";
            row["IT_ItemStatus"]   = this.languageComponent1.GetString(((ItemTracingQuery)obj).ItemStatus);
            row["IT_LOCAOP"]       = ((ItemTracing)obj).OPCode;
            row["IT_OPType"]       = this.languageComponent1.GetString(((ItemTracingQuery)obj).OPType);
            row["IT_OPResult"]     = GetOPTypeString((ItemTracingQuery)obj);
            row["IT_Route"]        = ((ItemTracingQuery)obj).RouteCode;
            row["IT_Segment"]      = ((ItemTracingQuery)obj).SegmentCode;
            row["IT_Line"]         = ((ItemTracingQuery)obj).LineCode;
            row["IT_Resource"]     = ((ItemTracingQuery)obj).ResCode;
            row["IT_MaintainDate"] = FormatHelper.ToDateString(((ItemTracingQuery)obj).MaintainDate);
            row["IT_MaintainTime"] = FormatHelper.ToTimeString(((ItemTracingQuery)obj).MaintainTime);
            row["IT_MaintainUser"] = ((ItemTracingQuery)obj).MaintainUser;
            row["IT_OPType_ORI"]   = ((ItemTracingQuery)obj).OPType;
            return(row);
        }
Exemple #10
0
 private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
     {
         OnWIPItem obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as OnWIPItem;
         DataRow   row = DtSource.NewRow();
         row["MItemCode"]      = obj.MItemCode;
         row["MOCode"]         = obj.MOCode;
         row["ItemCode"]       = obj.ItemCode;
         row["RouteCode"]      = obj.RouteCode;
         row["OPCode"]         = obj.OPCode;
         row["ResourceCode"]   = obj.ResourceCode;
         row["VendorCode"]     = obj.VendorCode;
         row["VendorItemCode"] = obj.VendorItemCode;
         row["LotNO"]          = obj.LotNO;
         row["DateCode"]       = obj.DateCode;
         row["Version"]        = obj.Version;
         row["PCBA"]           = obj.PCBA;
         row["BIOS"]           = obj.BIOS;
         row["Qty"]            = obj.Qty;
         row["MaintainUser"]   = obj.MaintainUser;
         row["MaintainDate"]   = FormatHelper.ToDateString(obj.MaintainDate);
         row["MaintainTime"]   = FormatHelper.ToTimeString(obj.MaintainTime);
         (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
     }
 }
        protected void SetColumnUp(object sender, ImageClickEventArgs e)
        {
            if (ActiveRowIndex == null)
            {
                return;
            }
            int activeRowIndex = (int)ActiveRowIndex;
            //if (activeRowIndex == 0)
            //    return;
            DataRow row1    = DtSource.Rows[activeRowIndex];
            DataRow tempRow = DtSource.NewRow();

            tempRow["ColumnName"]  = row1["ColumnName"];
            tempRow["DisplayDesc"] = row1["DisplayDesc"];
            tempRow["FilterType"]  = row1["FilterType"];
            tempRow["InputUIType"] = row1["InputUIType"];
            row1["ColumnName"]     = DtSource.Rows[activeRowIndex + 1]["ColumnName"];
            row1["DisplayDesc"]    = DtSource.Rows[activeRowIndex + 1]["DisplayDesc"];
            row1["FilterType"]     = DtSource.Rows[activeRowIndex + 1]["FilterType"];
            row1["InputUIType"]    = DtSource.Rows[activeRowIndex + 1]["InputUIType"];
            DataRow row2 = DtSource.Rows[activeRowIndex + 1];

            row2["ColumnName"]          = tempRow["ColumnName"];
            row2["DisplayDesc"]         = tempRow["DisplayDesc"];
            row2["FilterType"]          = tempRow["FilterType"];
            row2["InputUIType"]         = tempRow["InputUIType"];
            this.gridWebGrid.DataSource = DtSource;
            this.gridWebGrid.DataBind();
            //gridWebGrid.Behaviors.Activation.ActiveCell = gridWebGrid.Rows[activeRowIndex + 1].Items[0];
            //gridWebGrid.Behaviors.Activation.ActiveGroupedRow.Rows
            //gridWebGrid.Behaviors.Selection.SelectedRows.RemoveAt(0);
            //gridWebGrid.Behaviors.Selection.SelectedRows.Add(gridWebGrid.Rows[activeRowIndex + 1]);
            //ActiveRowIndex = activeRowIndex + 1;
        }
Exemple #12
0
        private void _processDataDourceToGrid(object[] source)
        {
//			this._initialWebGrid();

            this.gridWebGrid.Rows.Clear();
            DtSource.Rows.Clear();
            if (source != null)
            {
                foreach (TimeQuantitySum real in source)
                {
                    DataRow  gridRow = null;
                    object[] objs    = new object[this.gridWebGrid.Columns.Count];
                    gridRow = DtSource.NewRow();
                    gridRow["StepSequenceCode"] = real.StepSequenceCode;
                    gridRow["ResourceCode"]     = real.ResourceCode;
                    gridRow["ActionResult"]     = real.ActionResult.ToString();
                    if (gridRow.Table.Columns.Contains("GUID"))
                    {
                        gridRow["GUID"] = Guid.NewGuid().ToString();
                    }
                    this.DtSource.Rows.Add(gridRow);
                }
                this.gridWebGrid.DataSource = DtSource;
                this.gridWebGrid.DataBind();
            }

            this._processGridStyle();
        }
        private void InitData()
        {
            string strDataSourceId = this.GetRequestParam("datasourceid");
            string strGroupColumn  = this.GetRequestParam("groupcolumn");
            string strColumnList   = this.Request.QueryString["columnlist"];

            if (strDataSourceId == "" || strGroupColumn == "" || strColumnList == "")
            {
                throw new Exception("$Error_RequestUrlParameter_Lost");
            }
            ReportViewFacade rptFacade = new ReportViewFacade(this.DataProvider);

            RptViewDataSourceColumn[]   columns   = rptFacade.GetRptViewDataSourceColumnByDataSourceId(int.Parse(strDataSourceId));
            Dictionary <string, string> columnMap = new Dictionary <string, string>();

            for (int i = 0; i < columns.Length; i++)
            {
                columnMap.Add(columns[i].ColumnName, columns[i].Description);
            }

            string strExistSet = this.Request.QueryString["existsetting"];
            Dictionary <string, string> existSetting = new Dictionary <string, string>();

            string[] strSelectColumns = strExistSet.Split(';');
            for (int i = 0; i < strSelectColumns.Length; i++)
            {
                if (strSelectColumns[i].Trim() != "")
                {
                    string[] tmpArr = strSelectColumns[i].Trim().Split(',');
                    existSetting.Add(tmpArr[0], tmpArr[1]);
                }
            }
            string[] columnList = strColumnList.Split(',');
            for (int i = 0; i < columnList.Length; i++)
            {
                if (columnList[i] != "" && columnList[i] != strGroupColumn)
                {
                    string strTotalType = ReportTotalType.Empty;
                    if (existSetting.ContainsKey(columnList[i]) == true)
                    {
                        strTotalType = existSetting[columnList[i]];
                    }
                    DataRow row = DtSource.NewRow();
                    if (this.DtSource.Columns.Contains("GUID"))
                    {
                        row["GUID"] = Guid.NewGuid().ToString();
                    }
                    row["Sequence"]   = this.DtSource.Rows.Count + 1;
                    row["ColumnName"] = columnList[i];
                    row["ColumnDesc"] = columnMap[columnList[i]];
                    row["TotalType"]  = strTotalType;
                    this.DtSource.Rows.Add(row);
                }
            }
            this.gridWebGrid.DataSource = DtSource;
            this.gridWebGrid.DataBind();
            this.txtGroupColumnName.Text = columnMap[strGroupColumn];
        }
        protected override DataRow GetGridRow(object obj)
        {
            DataRow row = DtSource.NewRow();

            row["ErrorCode"]            = ((ErrorCode2OPReworkNew)obj).ErrorCode.ToString();
            row["ErrorCodeDescription"] = ((ErrorCode2OPReworkNew)obj).ErrorCodeDesc;
            row["ReworkRouteCode"]      = ((ErrorCode2OPReworkNew)obj).RouteCode;
            row["ToOPCode"]             = ((ErrorCode2OPReworkNew)obj).GetDisplayText("ToOPCode");
            return(row);
        }
        protected override DataRow GetGridRow(object obj)
        {
            DataRow row = DtSource.NewRow();

            row["UnassCheckItemCode"] = ((OQCCheckGroup2List)obj).CheckItemCode.ToString();
            row["MaintainUser"]       = ((OQCCheckGroup2List)obj).GetDisplayText("MaintainUser");
            row["MaintainDate"]       = FormatHelper.ToDateString(((OQCCheckGroup2List)obj).MaintainDate);
            row["MaintainTime"]       = FormatHelper.ToTimeString(((OQCCheckGroup2List)obj).MaintainTime);
            return(row);
        }
        protected override DataRow GetGridRow(object obj)
        {
            DataRow row = DtSource.NewRow();

            row["AssResourceCode"]      = ((Resource)obj).ResourceCode.ToString();
            row["ResourceDescription"]  = ((Resource)obj).ResourceDescription;
            row["ResourceStepSequence"] = ((Resource)obj).StepSequenceCode.ToString();
            row["MaintainUser"]         = ((Resource)obj).MaintainUser.ToString();
            row["MaintainDate"]         = FormatHelper.ToDateString(((Resource)obj).MaintainDate);
            return(row);
        }
        protected DataRow GetGridRow(object obj)
        {
            DataRow row = DtSource.NewRow();

            row["ReworkSourceCode"]        = ((ReworkSource)obj).ReworkSourceCode.ToString();
            row["ReworkSourceDescription"] = ((ReworkSource)obj).Description.ToString();
            row["MaintainUser"]            = ((ReworkSource)obj).GetDisplayText("MaintainUser");
            row["MaintainDate"]            = FormatHelper.ToDateString(((ReworkSource)obj).MaintainDate);
            row["MaintainTime"]            = FormatHelper.ToTimeString(((ReworkSource)obj).MaintainTime);
            return(row);
        }
        protected override DataRow GetGridRow(object obj)
        {
            DataRow row = DtSource.NewRow();

            row["UnAssErrorCode"]   = FormatHelper.PKCapitalFormat(((ErrorCodeA)obj).ErrorCode.ToString());
            row["ErrorDescription"] = ((ErrorCodeA)obj).ErrorDescription.ToString();
            row["MaintainUser"]     = ((ErrorCodeA)obj).GetDisplayText("MaintainUser");
            row["MaintainDate"]     = FormatHelper.ToDateString(((ErrorCodeA)obj).MaintainDate);
            row["MaintainTime"]     = FormatHelper.ToTimeString(((ErrorCodeA)obj).MaintainTime);
            return(row);
        }
Exemple #19
0
 private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
     {
         OnWipInfoOnOperation obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as OnWipInfoOnOperation;
         DataRow row = DtSource.NewRow();
         row["OperationCode"]       = obj.OperationCode;
         row["QuantityOnOperation"] = obj.OnWipQuantityOnOperation;
         row["OnWipDistributing"]   = "";
         (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
     }
 }
Exemple #20
0
        protected override DataRow GetGridRow(object obj)
        {
            RptViewReportStyle style = (RptViewReportStyle)obj;
            DataRow            row   = DtSource.NewRow();

            row["StyleID"]          = style.StyleID;
            row["StyleName"]        = style.Name;
            row["StyleDescription"] = style.Description;
            row["MaintainUser"]     = style.MaintainUser;
            row["MaintainDate"]     = FormatHelper.ToDateString(style.MaintainDate);
            row["MaintainTime"]     = FormatHelper.ToTimeString(style.MaintainTime);
            return(row);
        }
        private void AddRowToGrid(string columnName, string columnDesc)
        {
            DataRow row = DtSource.NewRow();

            row["GUID"]           = Guid.NewGuid().ToString();
            row["Sequence"]       = this.gridWebGrid.Rows.Count + 1;
            row["ColumnName"]     = columnName;
            row["ColumnDesc"]     = columnDesc;
            row["GroupTotalType"] = "<a href='' onclick=\"OpenTotalSetWindow('" + this.gridWebGrid.Rows.Count + "');return false;\">Click</a>";
            DtSource.Rows.Add(row);
            this.gridWebGrid.DataSource = DtSource;
            this.gridWebGrid.DataBind();
        }
 private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
     {
         QDORMAClosedRate obj  = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QDORMAClosedRate;
         decimal          rate = obj.Qty / obj.TotalQty;
         DataRow          row  = DtSource.NewRow();
         row["RMAStatus"]   = this.languageComponent1.GetString(obj.Status);
         row["RMAQuantity"] = obj.Qty.ToString("##.##");
         row["OwnRate"]     = rate.ToString("##.##%");
         (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
     }
 }
        private void AddRowToGrid(string columnName, string DisplayDesc)
        {
            DataRow row = DtSource.NewRow();

            row["GUID"]        = Guid.NewGuid().ToString();
            row["Sequence"]    = this.gridWebGrid.Rows.Count + 1;
            row["ColumnName"]  = columnName;
            row["DisplayDesc"] = DisplayDesc;
            row["TotalType"]   = "reporttotaltype_sum";
            DtSource.Rows.Add(row);
            this.gridWebGrid.DataSource = DtSource;
            this.gridWebGrid.DataBind();
        }
        protected DataRow GetGridRow(object obj)
        {
            DataRow row = DtSource.NewRow();

            row["ReworkPassSequence"] = ((ReworkPassEx)obj).PassSequence.ToString();
            row["PassContent"]        = ((ReworkPassEx)obj).PassContent.ToString();
            row["ReworkStatus"]       = this.GetPassStatusString(((ReworkPassEx)obj));
            row["ReworkUserCode"]     = ((ReworkPassEx)obj).GetDisplayText("UserCode");
            row["ReworkDepartment"]   = ((ReworkPassEx)obj).UserDepartment.ToString();
            row["MaintainDate"]       = FormatHelper.ToDateString(((ReworkPassEx)obj).MaintainDate);
            row["MaintainTime"]       = FormatHelper.ToTimeString(((ReworkPassEx)obj).MaintainTime);
            return(row);
        }
 private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
     {
         QDOTSPerformance obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QDOTSPerformance;
         DataRow          row = DtSource.NewRow();
         row["TsOperator"]       = obj.TsOperator;
         row["TsOperatorHidden"] = obj.TsOperatorHidden;
         row["TsQuantity"]       = obj.TsQuantity;
         row["List"]             = "";
         (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
     }
 }
        //比对成功
        protected DataRow GetGridRow(object obj)
        {
            DataRow row = DtSource.NewRow();

            row["MOCode"]         = ((MOBOM)obj).MOCode.ToString();
            row["ItemCode"]       = ((MOBOM)obj).ItemCode.ToString();
            row["MOBOMItemCode"]  = ((MOBOM)obj).MOBOMItemCode.ToString();
            row["MOBOMItemName"]  = ((MOBOM)obj).MOBOMItemName.ToString();
            row["MOBOMItemQty1"]  = ((MOBOM)obj).MOBOMItemQty.ToString();
            row["OPBOMItemQty1"]  = ((MOBOM)obj).OPBOMItemQty.ToString();
            row["MOBOMItemUOM"]   = ((MOBOM)obj).MOBOMItemUOM.ToString();
            row["MOBOMException"] = ((MOBOM)obj).MOBOMException.ToString();
            return(row);
        }
 private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
     {
         QDORMACustomerDis obj  = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QDORMACustomerDis;
         decimal           rate = obj.Quantity / obj.TotalQty;
         DataRow           row  = DtSource.NewRow();
         row["CustomerCode"] = obj.CustomerCode.ToString();
         row["RMACount"]     = obj.Count.ToString();
         row["RMAQuantity"]  = obj.Quantity.ToString();
         row["OwnRate"]      = rate.ToString("##.##%");
         (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
     }
 }
Exemple #28
0
        protected override DataRow GetGridRow(object obj)
        {
            SimulationReport sr  = obj as SimulationReport;
            DataRow          row = DtSource.NewRow();

            row["RunningCard"] = sr.RunningCard;
            row["OPCode"]      = sr.OPCode;
            row["Status"]      = this.languageComponent1.GetString(sr.Status);
            row["Line"]        = sr.StepSequenceCode;
            row["ResCode"]     = sr.ResourceCode;
            row["TestDate"]    = FormatHelper.ToDateString(sr.MaintainDate);
            row["TestTime"]    = FormatHelper.ToTimeString(sr.MaintainTime);
            return(row);
        }
        private void AddRowToGrid(string columnName, string columnDesc)
        {
            DataRow row = DtSource.NewRow();

            row["GUID"]        = Guid.NewGuid().ToString();
            row["Sequence"]    = this.gridWebGrid.Rows.Count + 1;
            row["ColumnName"]  = columnName;
            row["DisplayDesc"] = columnDesc;
            row["FilterType"]  = "reportfiltertype_equal";
            row["InputUIType"] = "<a href='#' onclick=\"OpenTotalSetWindow('" + this.gridWebGrid.Rows.Count + "');return false;\">Click</a>";
            this.DtSource.Rows.Add(row);
            this.gridWebGrid.DataSource = DtSource;
            this.gridWebGrid.DataBind();
        }
Exemple #30
0
        protected override DataRow GetGridRow(object obj)
        {
            DataRow row = DtSource.NewRow();

            row["MHumidityLevel"]     = ((MSDLevel)obj).MHumidityLevel.ToString();
            row["MHumidityLevelDesc"] = ((MSDLevel)obj).MHumidityLevelDesc.ToString();
            row["FloorLife"]          = ((MSDLevel)obj).FloorLife.ToString();
            row["DryingTime"]         = ((MSDLevel)obj).DryingTime.ToString();
            row["INDryingTime"]       = ((MSDLevel)obj).INDryingTime.ToString();
            row["MaintainUser"]       = ((MSDLevel)obj).GetDisplayText("MaintainUser");
            row["MaintainDate"]       = FormatHelper.ToDateString(((MSDLevel)obj).MaintainDate);
            row["MaintainTime"]       = FormatHelper.ToTimeString(((MSDLevel)obj).MaintainTime);
            return(row);
        }