Exemple #1
0
 private void gridLRR_Click(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
 {
     if (e.Cell.Column.Key.ToUpper() == "DayLRR".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "FReportCenterLRR.aspx",
                 new string[] { "segmentcode", "dategroup", "lrr" },
                 new string[] { e.Cell.Row.Cells[0].Text, "DAY",
                                (Convert.ToDecimal(e.Cell.Row.Cells[1].Text.Substring(0, e.Cell.Row.Cells[1].Text.Length - 1)) / 100).ToString() })
             );
     }
     else if (e.Cell.Column.Key.ToUpper() == "WeekLRR".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "FReportCenterLRR.aspx",
                 new string[] { "segmentcode", "dategroup", "lrr" },
                 new string[] { e.Cell.Row.Cells[0].Text, "WEEK",
                                (Convert.ToDecimal(e.Cell.Row.Cells[2].Text.Substring(0, e.Cell.Row.Cells[2].Text.Length - 1)) / 100).ToString() })
             );
     }
     else if (e.Cell.Column.Key.ToUpper() == "MonthLRR".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "FReportCenterLRR.aspx",
                 new string[] { "segmentcode", "dategroup", "lrr" },
                 new string[] { e.Cell.Row.Cells[0].Text, "MONTH",
                                (Convert.ToDecimal(e.Cell.Row.Cells[3].Text.Substring(0, e.Cell.Row.Cells[3].Text.Length - 1)) / 100).ToString() })
             );
     }
 }
Exemple #2
0
 private void gridYield_Click(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
 {
     if (e.Cell.Column.Key.ToUpper() == "DayPercent1".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "ReportCenterYield.aspx",
                 new string[] { "OPCode" },
                 new string[] { e.Cell.Row.Cells[0].Text })
             );
     }
     else if (e.Cell.Column.Key.ToUpper() == "WeekPercent".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "FReportCenterWeekPercent.aspx",
                 new string[] { "OPCode" },
                 new string[] { e.Cell.Row.Cells[0].Text })
             );
     }
     else if (e.Cell.Column.Key.ToUpper() == "MonthPercent".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "FReportCenterMonthPercent.aspx",
                 new string[] { "OPCode" },
                 new string[] { e.Cell.Row.Cells[0].Text })
             );
     }
 }
Exemple #3
0
 private void gridQuantity_Click(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
 {
     if (e.Cell.Column.Key.ToUpper() == "DayQuantity".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "ReportCenterLine.aspx",
                 new string[] { "SegmentCode" },
                 new string[] { e.Cell.Row.Cells[0].Text })
             );
     }
     else if (e.Cell.Column.Key.ToUpper() == "WeekQuantity".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "ReportCenterWeekQuantity.aspx",
                 new string[] { "SegmentCode" },
                 new string[] { e.Cell.Row.Cells[0].Text })
             );
     }
     else if (e.Cell.Column.Key.ToUpper() == "MonthQuantity".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "ReportCenterMonthQuantity.aspx",
                 new string[] { "SegmentCode" },
                 new string[] { e.Cell.Row.Cells[0].Text })
             );
     }
 }
Exemple #4
0
 private void gridWebGrid_DblClick(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
 {
     if (_modelFacade == null)
     {
         _modelFacade = new FacadeFactory(base.DataProvider).CreateModelFacade();
     }
     this.ViewState["opid"] = e.Row.Cells[5].ToString();
     SetEditObject(this._modelFacade.GetModel2Operation(OPID, GlobalVariables.CurrentOrganizations.First().OrganizationID));
 }
Exemple #5
0
    protected void ugrdEmpList_DblClick(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
    {
        ugrdAppLine.Rows.Insert(0, e.Row, true);
        int iRow = ugrdAppLine.Rows.Count;

        for (int i = 0; i < iRow; i++)
        {
            ugrdAppLine.Rows[i].Cells.FromKey("LINE_STEP").Value = Convert.ToString((i + 1));
        }
    }
Exemple #6
0
        private void gridWebGrid_DblClick(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
        {
            object obj = this.GetEditObject(e.Row);

            if (obj != null)
            {
                this.SetEditObject(obj);
                this.buttonHelper.PageActionStatusHandle(PageActionType.Update);
            }
        }
Exemple #7
0
 private void gridMocode_Click(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
 {
     if (e.Cell.Column.Key.ToUpper() == "DayQuantity".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "FReportCenterResCode.aspx",
                 new string[] { "SegmentCode", "StepSequenceCode", "MoCode", "ItemCode" },
                 new string[] { segmentCode, e.Cell.Row.Cells[0].Text, e.Cell.Row.Cells[1].Text, e.Cell.Row.Cells[2].Text })
             );
     }
 }
 private void gridWeekYield_Click(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
 {
     if (e.Cell.Column.Key.ToUpper() == "Qty".ToUpper())
     {
         this.Response.Redirect(
             this.MakeRedirectUrl(
                 "FReportCenterWeekProduct.aspx",
                 new string[] { "OPCode", "ECode" },
                 new string[] { opCode, e.Cell.Row.Cells[1].Text })
             );
     }
 }
        private void gridWebGrid_Click(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
        {
            if (e.Cell != null)
            {
                if (e.Cell.Row.Cells.FromKey("InputOutputName").Text == string.Empty)
                {
                    return;
                }
                if (e.Cell.Key == "InputOutputName")
                {
                    return;
                }
                if (e.Cell.Key == "ItemCode")
                {
                    return;
                }
                if (e.Cell.Column.Index > 0 &&
                    e.Cell.Column.Index < this.gridWebGrid.Columns.Count - 1 &&
                    e.Cell.Row.Index != this.gridWebGrid.Rows.Count - 1)
                {
                    if (e.Cell.Text != null && e.Cell.Text.Trim() != string.Empty)
                    {
                        if (!this.IsStartupScriptRegistered("details"))
                        {
                            bool   needMidOutput = FormatHelper.CleanString(this.txtItemQuery.Text).Length == 0?true:false;
                            string script        =
                                @"<script language='jscript' src='../Skin/js/selectAll.js'></script>
							<script language='javascript'>"                            ;

                            script += string.Format(
                                @"window.showModalDialog('./{0}','',showDialog(7));",
                                this.MakeRedirectUrl(
                                    "FRealTimeQuantityDetails2.aspx",
                                    new string[] {
                                "segmentcode",
                                "shiftday",
                                "shiftcode",
                                "tpcode",
                                "tpcodedetail",
                                "stepsequencecode",
                                "modelcode",
                                "Itemcode",
                                "mocode",
                                "IncludeMidOutput"
                            },
                                    new string[] {
                                this.drpSegmentQuery.SelectedValue,
                                this.eMESDate1.Text,
                                this.drpShiftQuery.SelectedValue,
                                e.Cell.Column.Key,
                                e.Cell.Column.HeaderText.Replace("<br>", "~"),
                                e.Cell.Row.Cells.FromKey("StepSequenceCode").Text,
                                this.txtModelQuery.Text,
                                //this.txtItemQuery.Text,
                                e.Cell.Row.Cells.FromKey("ItemCode").Text,
                                this.txtMoQuery.Text,
                                needMidOutput.ToString(),
                            }));

                            script += @"</script>";

                            this.RegisterClientScriptBlock("details", script);
                        }
                    }
                }
            }
        }
        private void gridWebGrid_Click(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
        {
            if (e.Cell != null)
            {
                if (e.Cell.Column.Index > 0 &&
                    e.Cell.Column.Index < this.gridWebGrid.Columns.Count - 1)
                {
                    if (e.Cell.Text != null && e.Cell.Text.Trim() != string.Empty)
                    {
                        if (e.Cell.Key == "MOShiftInputqty")
                        {
                            //工单投入数(当班)

                            if (!this.IsStartupScriptRegistered("inputdetails"))
                            {
                                string script =
                                    @"<script language='jscript' src='../Skin/js/selectAll.js'></script>
														<script language='javascript'>"                                                        ;

                                script += string.Format(
                                    @"window.showModalDialog('./{0}','',showDialog(7));",
                                    this.MakeRedirectUrl(
                                        "FRealTimeShiftInputDetails2.aspx",
                                        new string[] {
                                    "segmentcode",
                                    "shiftday",
                                    "shiftcode",
                                    "modelcode",
                                    "Itemcode",
                                    "mocode"
                                },
                                        new string[] {
                                    this.drpSegmentQuery.SelectedValue,
                                    this.eMESDate1.Text,
                                    this.drpShiftQuery.SelectedValue,
                                    e.Cell.Row.Cells.FromKey("ModelCode").Text,
                                    e.Cell.Row.Cells.FromKey("ItemCode").Text,
                                    e.Cell.Row.Cells.FromKey("MOCode").Text
                                }));

                                script += @"</script>";

                                this.RegisterClientScriptBlock("details", script);
                            }
                        }
                        else if (e.Cell.Key == "MOShiftOutputqty")
                        {
                            //工单产出数(当班)

                            if (!this.IsStartupScriptRegistered("outputdetails"))
                            {
                                string script =
                                    @"<script language='jscript' src='../Skin/js/selectAll.js'></script>
														<script language='javascript'>"                                                        ;

                                script += string.Format(
                                    @"window.showModalDialog('./{0}','',showDialog(7));",
                                    this.MakeRedirectUrl(
                                        "FRealTimeShiftOutputDetails2.aspx",
                                        new string[] {
                                    "segmentcode",
                                    "shiftday",
                                    "shiftcode",
                                    "modelcode",
                                    "Itemcode",
                                    "mocode"
                                },
                                        new string[] {
                                    this.drpSegmentQuery.SelectedValue,
                                    this.eMESDate1.Text,
                                    this.drpShiftQuery.SelectedValue,
                                    e.Cell.Row.Cells[0].Text,
                                    string.Empty,
                                    this.txtMoQuery.Text
                                }));

                                script += @"</script>";

                                this.RegisterClientScriptBlock("details", script);
                            }
                        }
                        #region

                        //						if( !this.IsStartupScriptRegistered("details") )
                        //						{
                        //							string script =
                        //								@"<script language='jscript' src='../Skin/js/selectAll.js'></script>
                        //							<script language='javascript'>";
                        //
                        //							script += string.Format(
                        //								@"window.showModalDialog('./{0}','',showDialog(7));",
                        //								this.MakeRedirectUrl(
                        //								"FRealTimeQuantityDetails.asp",
                        //								new string[]{
                        //												"segmentcode",
                        //												"shiftday",
                        //												"shiftcode",
                        //												"tpcode",
                        //												"tpcodedetail",
                        //												"stepsequencecode",
                        //												"modelcode",
                        //												"Itemcode",
                        //												"mocode"
                        //											},
                        //								new string[]{
                        //												this.drpSegmentQuery.SelectedValue,
                        //												this.eMESDate1.Text,
                        //												this.drpShiftQuery.SelectedValue,
                        //												e.Cell.Column.Key,
                        //												e.Cell.Column.HeaderText,
                        //												e.Cell.Row.Cells[0].Text,
                        //												string.Empty,
                        //												string.Empty,
                        //												this.txtMoQuery.Text
                        //											}));
                        //
                        //							script += @"</script>";
                        //
                        //							this.RegisterClientScriptBlock("details",script);
                        //						}
                        #endregion
                    }
                }
            }
        }