Exemplo n.º 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);
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            // 初始化页面语言
            this.InitPageLanguage(this.languageComponent1, false);

            this.txtSNQuery.Text = this.GetRequestParam("Rcard");
            this.txtTestSeq.Text = this.GetRequestParam("TestSeq");

            this._gridHelper = new GridHelper(this.gridWebGrid);

            this._helper = new WebQueryHelper(null, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);

            this._helper.LoadGridDataSource    += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow += new EventHandler(_helper_DomainObjectToGridRow);

            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();

                this._helper.Query(sender);
            }
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this.OWCPivotTable1.LanguageComponent = this.languageComponent1;

            this._gridHelper = new GridHelperForRPT(this.gridWebGrid);

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();

                txtOQCBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
                txtOQCEndDate.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));

                this.txtOQCBeginTime.Text = FormatHelper.ToTimeString(0);
                this.txtOQCEndTime.Text   = FormatHelper.ToTimeString(235959);
            }

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);
        }
Exemplo n.º 4
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this.cmdQuery.Attributes["onclick"]      = "document.all.hidAction.value='query'";
            this.cmdGridExport.Attributes["onclick"] = "document.all.hidAction.value='exp'";

            this._gridHelper = new GridHelper(this.gridWebGrid);

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);
            this._helper.MergeColumnIndexList     = new object[] { new int[] { 0, 1 }, new int[] { 2, 3 } };

            if (!Page.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();
                dateInDateFromQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
                dateInDateToQuery.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));

                //状态下拉列表
                this.drpStatus.Items.Clear();
                this.drpStatus.Items.Add(new ListItem("所有", ""));
                this.drpStatus.Items.Add(new ListItem("未出货", RCardStatus.Received));
                this.drpStatus.Items.Add(new ListItem("已出货", RCardStatus.Shipped));

                //加载入库类型
                this.LoadINVReceiveType();
            }
        }
Exemplo n.º 5
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;
     }
 }
Exemplo n.º 6
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._gridHelper = new GridHelperForRPT(this.gridWebGrid);

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);
            this._helper.GridCellClick           += new EventHandler(_helper_GridCellClick);

            RadioButtonListBuilder builder = new RadioButtonListBuilder(
                new TSPerformanceSummaryTarget(), this.rblSummaryTargetQuery, this.languageComponent1);

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();

                builder.Build();
                this.upDown.Value = 3;

                this.dateStartDateQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now));
                this.dateEndDateQuery.Text   = this.dateStartDateQuery.Text;
            }

            RadioButtonListBuilder.FormatListControlStyle(this.rblSummaryTargetQuery, 50);
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._gridHelper = new GridHelper(this.gridWebGrid);
            this._helper     = new WebQueryHelper(null, null, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            //this._helper.LoadGridDataSource +=new EventHandler(_helper_LoadGridDataSource);
            //this._helper.LoadGridDataSource +=new EventHandler(_processDataDourceToGrid);
            //this._helper.DomainObjectToGridRow +=new EventHandler(_helper_DomainObjectToGridRow);
            this.pagerSizeSelector.Readonly = true;
            this.eMESDate1.Enabled          = false;

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this.eMESDate1.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now));

                this._initialQueryCondtion();

                this._initialWebGrid();

                this._processDataDourceToGrid();
                //this._helper.Query( sender );
            }
        }
Exemplo n.º 8
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this.gridSNHelper  = new GridHelper(this.gridSN);
            this._gridSNHelper = new WebQueryHelper(this.cmdQuery, this.btnExpDimension, this.gridSN, this.Pagersizeselector2, this.Pagertoolbar2, this.languageComponent1);
            this._gridSNHelper.LoadGridDataSource      += new EventHandler(LoadDataSourceSN);
            this._gridSNHelper.DomainObjectToGridRow   += new EventHandler(GetGridRowSN);
            this._gridSNHelper.GetExportHeadText       += new EventHandler(_gridSNHelper_GetExportHeadText);
            this._gridSNHelper.DomainObjectToExportRow += new EventHandler(_gridSNHelper_DomainObjectToExportRow);

            this.gridFTHelper  = new GridHelper(this.grdFT);
            this._gridFTHelper = new WebQueryHelper(this.cmdQuery, this.btnExportFT, this.grdFT, this.Pagersizeselector1, this.Pagertoolbar1, this.languageComponent1);
            this._gridFTHelper.LoadGridDataSource      += new EventHandler(LoadDataSourceFT);
            this._gridFTHelper.DomainObjectToGridRow   += new EventHandler(GetGridRowFT);
            this._gridFTHelper.GetExportHeadText       += new EventHandler(_gridFTHelper_GetExportHeadText);
            this._gridFTHelper.DomainObjectToExportRow += new EventHandler(_gridFTHelper_DomainObjectToExportRow);

            FormatHelper.SetSNRangeValue(txtStartSnQuery, txtEndSnQuery);

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                bool loaddata = false;
                txtOQCBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
                txtOQCEndDate.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));

                this.txtOQCBeginTime.Text = FormatHelper.ToTimeString(0);
                this.txtOQCEndTime.Text   = FormatHelper.ToTimeString(235959);

                if (Page.Request["reworkrcard"] != null && Page.Request["reworkrcard"] != string.Empty)
                {
                    this.txtStartSnQuery.Text = Page.Request["reworkrcard"];
                    this.txtEndSnQuery.Text   = this.txtStartSnQuery.Text;

                    loaddata = true;
                }

                if (Page.Request["reworklotno"] != null && Page.Request["reworklotno"] != string.Empty)
                {
                    this.txtOQCLotQuery.Text = Page.Request["reworklotno"];

                    loaddata = true;
                }

                if (loaddata)
                {
                    DateTime begin = new DateTime(DateTime.Now.Year - 2, DateTime.Now.Month, DateTime.Now.Day);
                    this.txtOQCBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(begin));
                    this._helper.Query(null);
                }

                InitWebGridSN();

                InitWebGridFT();
            }
        }
 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
                                                    )
                                                ));
 }
Exemplo n.º 10
0
        private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
        {
            if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
            {
                TracedKeyParts obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as TracedKeyParts;

                DataRow row = this.DtSource.NewRow();
                row["MOCode"]           = obj.MOCode;
                row["RouteCode"]        = obj.RouteCode;
                row["OPCode"]           = obj.OPCode;
                row["Keyparts"]         = WebQueryHelper.GetItemTracingHtml(obj.MCARD, obj.CanTrace);
                row["ActionType"]       = (obj.ActionType == 0) ? "上料" : "下料";
                row["InsideItemCode"]   = obj.MItemCode;
                row["MItemName"]        = obj.MItemName;
                row["VendorCode"]       = obj.VendorCode;
                row["VendorItemCode"]   = obj.VendorItemCode;
                row["LotNo"]            = obj.LotNO;
                row["DateCode"]         = obj.DateCode;
                row["Version"]          = obj.Version;
                row["PCBAVersion"]      = obj.PCBA;
                row["BIOSVersion"]      = obj.BIOS;
                row["IT_MaintainUser1"] = obj.MaintainUser;
                row["IT_MaintainDate1"] = FormatHelper.ToDateString(obj.MaintainDate);
                row["IT_MaintainTime1"] = FormatHelper.ToTimeString(obj.MaintainTime);


                (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
//                    new UltraGridRow( new object[]{
//                                                      obj.MOCode,
//                                                      obj.RouteCode,
//                                                      obj.OPCode,
//                                                      WebQueryHelper.GetItemTracingHtml(obj.MCARD,obj.CanTrace),
//                                                      (obj.ActionType == 0)? "上料":"下料",
////													  FormatHelper.DisplayBoolean(obj.CanTrace, this.languageComponent1),
////													  "",
//                                                      obj.MItemCode,
//                                                      obj.MItemName,
//                                                      obj.VendorCode,
//                                                      obj.VendorItemCode,
//                                                      obj.LotNO,
//                                                      obj.DateCode,
//                                                      obj.Version,
//                                                      obj.PCBA,
//                                                      obj.BIOS,
//                                                      obj.MaintainUser,
//                                                      FormatHelper.ToDateString(obj.MaintainDate),
//                                                      FormatHelper.ToTimeString(obj.MaintainTime)

//                                                  }
//                    );
            }
        }
Exemplo n.º 11
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._gridHelper = new GridHelperForRPT(this.gridWebGrid);

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);
            this._helper.GridCellClick           += new EventHandler(_helper_GridCellClick);

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();

                TSStatus tsstatus = new TSStatus();
                tsstatus.Items.Remove(TSStatus.TSStatus_Reflow);                                //不包括回流
                new CheckBoxListBuilder(tsstatus, this.chkTSStateList, this.languageComponent1).Build();

                this.dateStartDateQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now));
                this.dateEndDateQuery.Text   = this.dateStartDateQuery.Text;

                this.txtReceiveBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now));
                this.txtReceiveEndDate.Text   = this.txtReceiveBeginDate.Text;

                this.txtTSBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now));
                this.txtTSEndDate.Text   = this.txtTSBeginDate.Text;

                this.dateStartTimeQuery.Text = FormatHelper.ToTimeString(0);
                this.dateEndTimeQuery.Text   = FormatHelper.ToTimeString(235959);

                this.txtReceiveBeginTime.Text = FormatHelper.ToTimeString(0);
                this.txtReceiveEndTime.Text   = FormatHelper.ToTimeString(235959);

                this.txtTSBeginTime.Text = FormatHelper.ToTimeString(0);
                this.txtTSEndTime.Text   = FormatHelper.ToTimeString(235959);

                this.rdbErrorDate.Attributes["onclick"]    = "onRadioCheckChange(this)";
                this.rdbReceivedDate.Attributes["onclick"] = "onRadioCheckChange(this)";
                this.rdbTSDate.Attributes["onclick"]       = "onRadioCheckChange(this)";

                this.rdbErrorDate.Checked = true;
            }
            CheckBoxListBuilder.FormatListControlStyle(this.chkTSStateList, 80);

            FormatHelper.SetSNRangeValue(txtStartSnQuery, txtEndSnQuery);
        }
Exemplo n.º 12
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            InitialRequestParam();
            this._gridHelper = new GridHelperForRPT(this.gridWebGrid);

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);
            this._helper.GridCellClick           += new EventHandler(_helper_GridCellClick);

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();

                this._helper.Query(this);
                // 设置不良数量栏的合并
                string strErrCode  = string.Empty;
                int    iRowCount   = 0;
                int    iRowIdx     = 0;
                int    iIdxErrCode = this.gridWebGrid.Columns.FromKey("ErrorCode").Index;
                int    iIdxQty     = this.gridWebGrid.Columns.FromKey("TotalQty").Index;
                for (int i = 0; i < this.gridWebGrid.Rows.Count; i++)
                {
                    if (this.gridWebGrid.Rows[i].Cells[iIdxErrCode].Text != strErrCode)
                    {
                        if (iRowCount > 1)
                        {
                            this.gridWebGrid.Rows[iRowIdx].Cells[iIdxQty].RowSpan = iRowCount;
                        }
                        iRowCount  = 1;
                        iRowIdx    = i;
                        strErrCode = this.gridWebGrid.Rows[i].Cells[iIdxErrCode].Text;
                    }
                    else
                    {
                        iRowCount++;
                    }
                }
                if (iRowCount > 1)
                {
                    this.gridWebGrid.Rows[iRowIdx].Cells[iIdxQty].RowSpan = iRowCount;
                }
            }
        }
        private DataRow GetGridRow(object obj)
        {
            DataRow row = DtSource.NewRow();

            row["ModelCode"]        = ((RealTimeInputOutputQuantity)obj).ModelCode.ToString();
            row["ItemCode"]         = ((RealTimeInputOutputQuantity)obj).ItemCode.ToString();
            row["MOCode"]           = ((RealTimeInputOutputQuantity)obj).MOCode.ToString();
            row["MOPlanqty"]        = ((RealTimeInputOutputQuantity)obj).MOPlanqty.ToString();
            row["MOShiftInputqty"]  = WebQueryHelper.GetLinkHtml(this.languageComponent1, ((RealTimeInputOutputQuantity)obj).MOShiftInputqty.ToString(), this.GetUrlParams(obj));
            row["MOInputqty"]       = ((RealTimeInputOutputQuantity)obj).MOInputqty.ToString();
            row["MOShiftOutputqty"] = WebQueryHelper.GetLinkHtml(this.languageComponent1, ((RealTimeInputOutputQuantity)obj).MOShiftOutputqty.ToString(), this.GetUrlParams(obj));
            row["MOOutputqty"]      = ((RealTimeInputOutputQuantity)obj).MOOutputqty.ToString();
            row["MOScrapqty"]       = ((RealTimeInputOutputQuantity)obj).MOScrapqty.ToString();
            row["MOOffQty"]         = ((RealTimeInputOutputQuantity)obj).MOOffQty.ToString();
            return(row);
        }
Exemplo n.º 14
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            this._gridHelper = new GridHelper(this.gridWebGrid);

            this._initialWebGrid();

            this._helper = new WebQueryHelper(null, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);

            if (!this.IsPostBack)
            {
                this._helper.Query(sender);
            }
        }
Exemplo n.º 15
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._gridHelper = new GridHelper(this.gridWebGrid);


            this.cmdGridExport.Visible = false;
            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource    += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow += new EventHandler(_helper_DomainObjectToGridRow);
            this.txtItemCodeQuery.Target        = this.MakeRedirectUrl("FItemSP.aspx");

            if (!this.IsPostBack)
            {
                this._initialWebGrid();
                this.dateStartDateQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now));
                this.dateEndDateQuery.Text   = this.dateStartDateQuery.Text;
            }
        }
Exemplo n.º 16
0
 protected override string[] FormatExportRecord(object obj)
 {
     return(new string[] {
         ((ProductionProcess)obj).MOCode.ToString(),
         ((ProductionProcess)obj).RCard.ToString(),
         ((ProductionProcess)obj).RouteCode.ToString(),
         ((ProductionProcess)obj).OPCode.ToString(),
         this.languageComponent1.GetString(((ProductionProcess)obj).ItemStatus.ToString()),
         WebQueryHelper.GetOPResult(this.languageComponent1, ((ProductionProcess)obj).Action),
         ((ProductionProcess)obj).SegmentCode,
         ((ProductionProcess)obj).LineCode.ToString(),
         ((ProductionProcess)obj).ResCode.ToString(),
         FormatHelper.ToDateString(((ProductionProcess)obj).MaintainDate),
         FormatHelper.ToTimeString(((ProductionProcess)obj).MaintainTime),
         ((ProductionProcess)obj).MaintainUser.ToString(),
     }
            );
 }
 private Infragistics.WebUI.UltraWebGrid.UltraGridRow GetGridRow(object obj)
 {
     return(new Infragistics.WebUI.UltraWebGrid.UltraGridRow(
                new object[] {
         ((RealTimeInputOutputQuantity)obj).ModelCode.ToString(),
         ((RealTimeInputOutputQuantity)obj).ItemCode.ToString(),
         ((RealTimeInputOutputQuantity)obj).MOCode.ToString(),
         ((RealTimeInputOutputQuantity)obj).MOPlanqty.ToString(),
         WebQueryHelper.GetLinkHtml(this.languageComponent1, ((RealTimeInputOutputQuantity)obj).MOShiftInputqty.ToString(), this.GetUrlParams(obj)),
         //((RealTimeInputOutputQuantity)obj).MOShiftInputqty.ToString(),
         ((RealTimeInputOutputQuantity)obj).MOInputqty.ToString(),
         WebQueryHelper.GetLinkHtml(this.languageComponent1, ((RealTimeInputOutputQuantity)obj).MOShiftOutputqty.ToString(), this.GetUrlParams(obj)),
         //((RealTimeInputOutputQuantity)obj).MOShiftOutputqty.ToString(),
         ((RealTimeInputOutputQuantity)obj).MOOutputqty.ToString(),
         ((RealTimeInputOutputQuantity)obj).MOScrapqty.ToString(),
         ((RealTimeInputOutputQuantity)obj).MOOffQty.ToString()
     }));
 }
Exemplo n.º 18
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._gridHelper = new GridHelper(this.gridWebGrid);

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);
            this._helper.GridCellClick           += new EventHandler(_helper_GridCellClick);

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();
            }
        }
        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);
        }
Exemplo n.º 20
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._gridHelper = new GridHelper(this.gridWebGrid);

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);

            if (!IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();
                this.dateStockDateFromQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Now));
                this.dateStockDateToQuery.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Now));
            }
        }
Exemplo n.º 21
0
 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
     //                ) ;
 }
Exemplo n.º 22
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._GridHelper = new GridHelper(this.gridWebGrid);

            this._WebQueryHelper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._WebQueryHelper.LoadGridDataSource      += new EventHandler(WebQueryHelper_LoadGridDataSource);
            this._WebQueryHelper.DomainObjectToGridRow   += new EventHandler(WebQueryHelper_DomainObjectToGridRow);
            this._WebQueryHelper.CheckRequireFields      += new EventHandler(WebQueryHelper_CheckRequireFields);
            this._WebQueryHelper.GetExportHeadText       += new EventHandler(WebQueryHelper_GetExportHeadText);
            this._WebQueryHelper.DomainObjectToExportRow += new EventHandler(WebQueryHelper_DomainObjectToExportRow);

            if (!this.IsPostBack)
            {
                this.InitPageLanguage(this.languageComponent1, false);

                this.InitQueryCondtion();
                this.InitWebGrid();

                this.columnChart.Visible = false;
            }
        }
Exemplo n.º 23
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            _GridHelper      = new GridHelper(this.gridWebGrid);
            _PauseFacade     = new PauseFacade(this.DataProvider);
            _WarehouseFacade = new WarehouseFacade(this.DataProvider);

            if (!this.IsPostBack)
            {
                this.InitPageLanguage(this.languageComponent1, false);
                InitDropDownList_PeiodGroup();
                InitDropDownList_FirstClass();

                InitWebGrid();
                this.chbSAPCompelete.Checked = true;
            }

            this._WebQueryHelper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._WebQueryHelper.LoadGridDataSource      += new EventHandler(WebQueryHelper_LoadGridDataSource);
            this._WebQueryHelper.DomainObjectToGridRow   += new EventHandler(WebQueryHelper_DomainObjectToGridRow);
            this._WebQueryHelper.DomainObjectToExportRow += new EventHandler(WebQueryHelper_DomainObjectToExportRow);
        }
Exemplo n.º 24
0
 protected override string[] FormatExportRecord(object obj)
 {
     return(new string[] {
         ((ItemTracingQuery)obj).RCard.ToString(),
         ((ItemTracingQuery)obj).MOCode.ToString(),
         ((ItemTracingQuery)obj).MaterialModelCode.ToString(),
         ((ItemTracingQuery)obj).ItemCode.ToString(),
         ((ItemTracingQuery)obj).BigStepSequenceCode.ToString(),
         this.languageComponent1.GetString(((ItemTracingQuery)obj).ItemStatus.ToString()),
         ((ItemTracingQuery)obj).OPCode.ToString(),
         WebQueryHelper.GetOPResultLinkText(this.languageComponent1, ((ItemTracingQuery)obj).OPType),
         ((ItemTracingQuery)obj).RouteCode.ToString(),
         ((ItemTracingQuery)obj).SegmentCode.ToString(),
         ((ItemTracingQuery)obj).LineCode.ToString(),
         ((ItemTracingQuery)obj).ResCode.ToString(),
         FormatHelper.ToDateString(((ItemTracingQuery)obj).MaintainDate),
         FormatHelper.ToTimeString(((ItemTracingQuery)obj).MaintainTime),
         ((ItemTracingQuery)obj).MaintainUser.ToString()
     }
            );
 }
Exemplo n.º 25
0
 private void _helper_DomainObjectToExportRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToExportRowEventArgsNew).DomainObject != null)
     {
         if (string.Compare(this.txtOperationCodeQuery.Text, "TS", true) != 0)
         {
             OnWipInfoDistributing obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as OnWipInfoDistributing;
             (e as DomainObjectToExportRowEventArgsNew).ExportRow =
                 new string[] {
                 this.txtItemCodeQuery.Text,
                 this.txtOperationCodeQuery.Text,
                 this.txtResourceCodeQuery.Text,
                 this.txtMoCodeQuery.Text,
                 obj.RunningCard,
                 this.languageComponent1.GetString(obj.ProductStatus),
                 WebQueryHelper.GetOPResult(this.languageComponent1, obj.Action),
                 FormatHelper.ToDateString(obj.MaintainDate),
                 FormatHelper.ToTimeString(obj.MaintainTime),
                 obj.MaintainUser
             };
         }
         else
         {
             OnWipInfoDistributing obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as OnWipInfoDistributing;
             (e as DomainObjectToExportRowEventArgsNew).ExportRow =
                 new string[] {
                 this.txtItemCodeQuery.Text,
                 this.txtOperationCodeQuery.Text,
                 this.txtResourceCodeQuery.Text,
                 this.txtMoCodeQuery.Text,
                 obj.RunningCard,
                 this.languageComponent1.GetString(obj.ProductStatus),
                 this.languageComponent1.GetString("ItemTracing_ts"),
                 FormatHelper.ToDateString(obj.MaintainDate),
                 FormatHelper.ToTimeString(obj.MaintainTime),
                 obj.MaintainUser
             };
         }
     }
 }
Exemplo n.º 26
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._gridHelper = new GridHelper(this.gridWebGrid);

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);
            this._helper.GridCellClick           += new EventHandler(_helper_GridCellClick);

            FormatHelper.SetSNRangeValue(txtStartSnQuery, txtEndSnQuery);

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();
                this.txtFrmDateFrom.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
                this.txtFrmDateTo.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
            }
        }
Exemplo n.º 27
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._gridHelper = new GridHelper(this.gridWebGrid);

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();

                txtRecieveBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
                txtRecieveEndDate.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));

                txtTossBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
                txtTossEndDate.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));

                InitDropDownList();

                gridWebGrid.DisplayLayout.SelectTypeRowDefault = Infragistics.WebUI.UltraWebGrid.SelectType.Single;

                if (!this.Page.IsStartupScriptRegistered("SelectableTextBox_Startup_js"))
                {
                    string scriptString = string.Format("<script>var STB_Virtual_Path = \"{0}\";</script><script src='{0}SelectQuery/selectableTextBox.js'></script>", this.VirtualHostRoot);

                    this.Page.RegisterStartupScript("SelectableTextBox_Startup_js", scriptString);
                }
            }

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);

            //FormatHelper.SetSNRangeValue(txtStartSnQuery,txtEndSnQuery);
        }
Exemplo n.º 28
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._gridHelper = new GridHelper(this.gridWebGrid);

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);
            //this._helper.MergeColumnIndexList = new object[]{ new int[]{0,1}, new int[]{2,3} };

            if (!Page.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();

                this.txtDate.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
                this.txtDateTo.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
                BindSegment();
                BindShift();
            }
        }
Exemplo n.º 29
0
        //protected GridHelper gridBurnInHelper ;

        protected void Page_Load(object sender, System.EventArgs e)
        {
            // 在此处放置用户代码以初始化页面

//			this.gridBurnInHelper = new GridHelper(this.gridWebGrid) ;
//			this.gridBurnInHelper.LoadDataSourceHandle = new LoadDataSourceDelegate(this.LoadDataSourceBurnIn);
//			this.gridBurnInHelper.GetRowCountHandle = new GetRowCountDelegate(this.GetRowCountBurnIn);
//			this.gridBurnInHelper.BuildGridRowhandle = new BuildGridRowDelegate(this.GetGridRowBurnIn);
//
//			InitWebGridBurnIn();

            this.gridHelper = new GridHelper(this.gridWebGrid);

            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                InitWebGrid();

                txtBurnInDateFrom.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
                txtBurnInDateTo.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));

                txtBurnOutDateFrom.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
                txtBurnOutDateTo.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today));
            }

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);
            //this._helper.GridCellClick +=new EventHandler(_helper_GridCellClick);

            FormatHelper.SetSNRangeValue(txtStartSnQuery, txtEndSnQuery);
        }
Exemplo n.º 30
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (rdbUpToSnuff.Checked)
            {
                SoftCompareResult = rdbUpToSnuff.ID;
            }
            else
            {
                SoftCompareResult = rdbAbnormity.ID;
            }
            this._gridHelper = new GridHelper(this.gridWebGrid);

            this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1);
            this._helper.LoadGridDataSource      += new EventHandler(_helper_LoadGridDataSource);
            this._helper.DomainObjectToGridRow   += new EventHandler(_helper_DomainObjectToGridRow);
            this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow);
            this._helper.GetExportHeadText       += new EventHandler(_helper_GetExportHeadText);

            FormatHelper.SetSNRangeValue(txtStartSNQuery, txtEndSNQuery);

            if (!Page.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                this._initialWebGrid();
                this.txtBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now));
                this.txtEndDate.Text   = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now));
                this.rdbUpToSnuff.Attributes.Add("onclick", "OnChecked(this.id)");
                this.rdbAbnormity.Attributes.Add("onclick", "OnChecked(this.id)");

                rdbUpToSnuff.Checked = true;
            }

            //this.ExecuteClientFunction("OnChecked",this.SoftCompareResult);
        }