protected void gridWebGrid_Click(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e) { }
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( "FRealTimeShiftInputDetails.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( "FRealTimeShiftOutputDetails.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 } } } }
private void gridWebGrid_DblClick(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e) { Response.Redirect(this.MakeRedirectUrl("FMOEP.aspx", new string[] { "ACT", "MOCode" }, new string[] { "EDIT", e.Row.Cells[2].Text.Trim() })); }