示例#1
0
        private void gridWebGrid_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
        {
            if (e.Cell.Column.Key == "Edit")
            {
                object obj = this.GetEditObject(e.Cell.Row);

                if (obj != null)
                {
                    this.SetEditObject(obj);

                    this.buttonHelper.PageActionStatusHandle(PageActionType.Update);
                }
            }
        }
示例#2
0
 private void gridWebGrid_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
 {
     if (this.gridHelper.IsClickColumn("TransactionDetail", e))
     {
         this.Response.Redirect(this.MakeRedirectUrl("./FQueryItemDtlSP.aspx",
                                                     new string[] { "itemcode", "transtype", "mocode", "factoryfrom", "warehousecodefrom", "factoryto", "warehousecodeto" },
                                                     new string[] { e.Cell.Row.Cells.FromKey("WarehouseItemCode").Text,
                                                                    e.Cell.Row.Cells.FromKey("TransactionTypeCode").Text,
                                                                    e.Cell.Row.Cells.FromKey("MOCode").Text,
                                                                    e.Cell.Row.Cells.FromKey("FactoryCode").Text,
                                                                    e.Cell.Row.Cells.FromKey("WarehouseCode").Text,
                                                                    e.Cell.Row.Cells.FromKey("TOFactoryCode").Text,
                                                                    e.Cell.Row.Cells.FromKey("TOWarehouseCode").Text }));
     }
 }
        private void gridWebGrid_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
        {
            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"))
                    {
                        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,
                            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);
                    }
                }
            }
        }
示例#4
0
        private void gridWebGrid_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
        {
            if (e.Cell.Column.Key == "RCardList")
            {
                this.Session["FInvRCardQP_Type"]     = "Receive";
                this.Session["FInvRCardQP_No"]       = e.Cell.Row.Cells.FromKey("ReceiveNo").Text;
                this.Session["FInvRCardQP_Seq"]      = e.Cell.Row.Cells.FromKey("SEQ").Text;
                this.Session["FInvRCardQP_Status"]   = this.drpStatus.SelectedValue;
                this.Session["FInvRCardQP_From"]     = this.txtRCardFrom.Text.Trim();
                this.Session["FInvRCardQP_To"]       = this.txtRCardTo.Text.Trim();
                this.Session["FInvRCardQP_DateFrom"] = this.dateInDateFromQuery.Text;
                this.Session["FInvRCardQP_DateTo"]   = this.dateInDateToQuery.Text;

                Response.Redirect(this.MakeRedirectUrl("FInvRCardQP.aspx"));
            }
        }
示例#5
0
        private void gridWebGrid_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
        {
            if (this.gridHelper.IsClickEditColumn(e))
            {
                object obj = this.GetEditObject(e.Cell.Row);

                if (obj != null)
                {
                    this.SetEditObject(obj);

                    this.buttonHelper.PageActionStatusHandle(PageActionType.Update);
                }
            }
            if (e.Cell.Column.Key == "detail")
            {
                Response.Redirect(this.MakeRedirectUrl("FOPBOMOperationListMP.aspx",
                                                       new string[] { "itemcode", "opbomcode", "opbomversion", "routecode" },
                                                       new string[] { e.Cell.Row.Cells[1].Text, e.Cell.Row.Cells[2].Text, e.Cell.Row.Cells[7].Text, e.Cell.Row.Cells[3].Text }));
            }
        }
示例#6
0
        private void gridWebGrid_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
        {
            if (e.Cell.Column.Key == "Edit")
            {
                object obj = this.GetEditObject(e.Cell.Row);

                if (obj != null)
                {
                    this.SetEditObject(obj);

                    this.buttonHelper.PageActionStatusHandle(PageActionType.Update);
                }
            }
            else if (e.Cell.Column.Key == "MO2Order")
            {
                //Response.Redirect(this.MakeRedirectUrl("../OQC/FItem2CheckListSP.aspx",new string[] {"itemcode"},new string[] {e.Cell.Row.Cells.FromKey("ItemCode").Text.Trim()}));
            }

            else if (e.Cell.Column.Key == "OrderDetail")
            {
                Response.Redirect(this.MakeRedirectUrl("FOrderDetailMP.aspx", new string[] { "OrderNO" }, new string[] { e.Cell.Row.Cells.FromKey("OrderNO").Text.Trim() }));
            }
        }
示例#7
0
        private void gridSN_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
        {
            if (e.Cell.Column.Key.ToUpper() == "TESTDATA")
            {
                string url = this.MakeRedirectUrl(
                    "FOQCFuncValueDataQP.aspx",
                    new string[] {
                    "LotNo",
                    "LotSeq",
                    "RCard",
                    "RCardSeq",
                    "BackUrl"
                },
                    new string[] {
                    e.Cell.Row.Cells.FromKey("LotNo").Text,                                                    //this.txtLotNo.Value,
                    e.Cell.Row.Cells.FromKey("LotSeq").Text,                                                   //this.txtLotSeq.Value,
                    e.Cell.Row.Cells.FromKey("RCard").Text,
                    e.Cell.Row.Cells.FromKey("RCardSeq").Text,
                    "FOQCTestDataQP.aspx"
                });

                this.Response.Redirect(url, true);
            }
        }
 protected void txtAlerts_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
 {
 }
示例#9
0
 private void gridWebGrid_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
 {
 }
示例#10
0
 public bool IsClickColumn(string columnKey, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
 {
     return(IsClickColumn(columnKey, e.Cell));
 }
示例#11
0
 public bool IsClickEditColumn(Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
 {
     return(IsClickEditColumn(e.Cell));
 }
示例#12
0
        private void gridWebGrid_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
        {
            string url = "./FSetCustPro.aspx?CustCode=" + e.Cell.Row.Cells.FromKey("CGroupCode").Text.ToString();

            Response.Redirect(url, true);
        }
示例#13
0
 // 单击Grid的CellButton调用
 protected virtual void Grid_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
 {
     this.Grid_ClickCell(e.Cell);
 }
示例#14
0
 protected void gridWebGrid_ClickCellButton(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
 {
     if (e.Cell.Column.Key == "Edit")
     {
     }
 }