コード例 #1
0
        private void ultraGrid1_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
        {
            UltraGridRow activeRow = this.ultraGrid1.ActiveRow;

            if (activeRow is UltraGridGroupByRow)
            {
                // The activeRow can be a group-by row
                Console.WriteLine("Group by row activated. Description: " + activeRow.Description);
            }
            else
            {
                this.txtIdLote.Text    = Convert.ToString(activeRow.Cells["IdLote"].Value);
                this.txtNorte.Text     = Convert.ToString(activeRow.Cells["norte"].Value);
                this.txtSur.Text       = Convert.ToString(activeRow.Cells["sur"].Value);
                this.txtEste.Text      = Convert.ToString(activeRow.Cells["este"].Value);
                this.txtOeste.Text     = Convert.ToString(activeRow.Cells["oeste"].Value);
                this.txtmedidas.Text   = Convert.ToString(activeRow.Cells["medidas"].Value);
                this.txtUbicacion.Text = Convert.ToString(activeRow.Cells["ubicacion"].Value);
                this.txtIdParcela.Text = Convert.ToString(activeRow.Cells["idParcela"].Value);
                this.txtParcela.Text   = Convert.ToString(activeRow.Cells["NombreParcela"].Value);

                if (!String.IsNullOrEmpty(activeRow.Cells["imagen"].Value.ToString()))
                {
                    byte[] imagenBuffer       = (byte[])activeRow.Cells["imagen"].Value;
                    System.IO.MemoryStream ms = new System.IO.MemoryStream(imagenBuffer);

                    this.pxImagen.Image    = Image.FromStream(ms);
                    this.pxImagen.SizeMode = PictureBoxSizeMode.StretchImage;
                }
                this.cbIdestatus.SelectedValue = Convert.ToString(activeRow.Cells["estatus"].Value);

                //estatus falta
                this.tabControl1.SelectedIndex = 1;
            }
        }
コード例 #2
0
        private void ugGrid_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
        {
            if (ugGrid.Rows.Count == 0)
            {
                return;
            }
            if (ugGrid.ActiveRow.IsFilterRow)
            {
                return;
            }
            if (this.ugGrid.ActiveRow.Cells["ID"].Value == DBNull.Value)
            {
                return;
            }

            //PatientEdit openDialog = new PatientEdit(1, ugGrid.ActiveRow.Cells["ID"].Value.ToString());
            //openDialog.ShowDialog();
            //if (openDialog.DialogResult == DialogResult.OK)
            //{
            //    LoadBucterList();
            //}
            DetailInfo openDialog = new DetailInfo(OperateType.VIew, int.Parse(ugGrid.ActiveRow.Cells["ID"].Value.ToString()));

            openDialog.StartPosition = FormStartPosition.CenterScreen;
            openDialog.ShowDialog();
        }
コード例 #3
0
 private void ultraGrid1_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
 {
     if (ultraGrid1.ActiveRow != null)
     {
         int             id  = int.Parse(this.ultraGrid1.ActiveRow.Cells["ReportMemorized"].Value.ToString());
         frmReportViewer frm = new frmReportViewer();
         frm.View(id, true);
         frm.ShowDialog();
     }
     LoadData();
 }
コード例 #4
0
 private void dQueueService_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
 {
     try
     {
         MessageBox.Show("VesselID: " + Algorithm.Utilities.GetShipIndexByVesselID(Convert.ToInt16(e.Row.Cells["VesselID"].Value)).ShipName1 + "/ LOA:" +
                         Algorithm.Utilities.GetShipIndexByVesselID(Convert.ToInt16(e.Row.Cells["VesselID"].Value)).LOA1 + "/ BOA:" +
                         Algorithm.Utilities.GetShipIndexByVesselID(Convert.ToInt16(e.Row.Cells["VesselID"].Value)).BOA1 + "/ MOV:" +
                         Algorithm.Utilities.GetShipIndexByVesselID(Convert.ToInt16(e.Row.Cells["VesselID"].Value)).MOV1 + "/ Unit:" +
                         Algorithm.Utilities.GetShipIndexByVesselID(Convert.ToInt16(e.Row.Cells["VesselID"].Value)).Units1);
     }catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #5
0
        private void ultraGrid1_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
        {
            UltraGridRow activeRow = this.ultraGrid1.ActiveRow;

            if (activeRow is UltraGridGroupByRow)
            {
                // The activeRow can be a group-by row
                Console.WriteLine("Group by row activated. Description: " + activeRow.Description);
            }
            else
            {
                this.txtIdParcela.Text     = Convert.ToString(activeRow.Cells["IdParcela"].Value);
                this.txtNombre.Text        = Convert.ToString(activeRow.Cells["Nombre"].Value);
                this.txtColonia.Text       = Convert.ToString(activeRow.Cells["Colonia"].Value);
                this.txtCP.Text            = Convert.ToString(activeRow.Cells["CP"].Value);
                this.txtDelMunc.Text       = Convert.ToString(activeRow.Cells["DelMunc"].Value);
                this.txtObservaciones.Text = Convert.ToString(activeRow.Cells["Observaciones"].Value);
                //estatus falta
                this.tabControl1.SelectedIndex = 1;
            }
        }
コード例 #6
0
 private void ultraGridReportSchedules_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
 {
     EditSchedule();
 }
コード例 #7
0
 private void UltraGridProizvodi_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
 {
     Update(null, null);
 }
コード例 #8
0
 private void UltraGridUstanoveSkolskeGodine_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
 {
     Update(null, null);
 }
コード例 #9
0
 private void ultraGrid1_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
 {
     Close();
 }
コード例 #10
0
        private void ultraGrid3_DoubleClick(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            if (ultraGrid3.Rows.Count > 0 && e.Row.Index != -1)
            {
                strZYBH = this.ultraGrid3.Rows[e.Row.Index].Cells["FS_WEIGHTNO"].Value.ToString();
                //SelectIndexGird = e.Row.Index;
                if (strZYBH != "")
                {
                    GetWeightImage(strZYBH);
                }
                else
                {
                    MessageBox.Show("计量数据不正确!");
                }
            }
            if (this.dataTable1.Rows.Count > 0)
            {
                for (int i = 0; i < 9; i++)
                {
                    if (this.dataTable1.Rows[0][i] != DBNull.Value && i != 8)
                    {
                        byte[] PicStreamByte = (byte[])this.dataTable1.Rows[0][i];
                        switch (i + 1)
                        {
                        case 1:
                            this.ulpic1.Image = BytesToBitmap(PicStreamByte);
                            break;

                        case 2:
                            this.ulpic2.Image = BytesToBitmap(PicStreamByte);
                            break;

                        case 3:
                            this.ulpic3.Image = BytesToBitmap(PicStreamByte);
                            break;

                        case 4:
                            this.ulpic4.Image = BytesToBitmap(PicStreamByte);
                            break;

                        case 5:
                            this.ulpic5.Image = BytesToBitmap(PicStreamByte);
                            break;

                        case 6:
                            this.ulpic6.Image = BytesToBitmap(PicStreamByte);
                            break;

                        case 7:
                            this.ulpic7.Image = BytesToBitmap(PicStreamByte);
                            break;

                        case 8:
                            this.ulpic8.Image = BytesToBitmap(PicStreamByte);
                            break;
                        }
                    }
                }
                DataTable ultrachart11 = CureToTable(this.dataTable1.Rows[0][8].ToString().Trim());

                if (ultrachart11.Rows.Count > 0)
                {
                    if (ultrachart11.Columns.Count != 0)
                    {
                        this.ultraChart11.DataSource = ultrachart11;
                    }
                }
                else
                {
                    InitultraChartDatasource(this.ultraChart11);
                }
            }
            else
            {
                this.ulpic1.Image = null;
                this.ulpic2.Image = null;
                this.ulpic3.Image = null;
                this.ulpic4.Image = null;
                this.ulpic5.Image = null;

                this.ulpic7.Image = null;
                this.ulpic8.Image = null;
                this.ulpic6.Image = null;

                InitultraChartDatasource(this.ultraChart11);
            }
            this.Cursor = Cursors.Default;
        }
コード例 #11
0
ファイル: LicensesTabView.cs プロジェクト: windygu/AW-master
 /// <summary>
 /// Called when we double click on a data row within the grid - this should edit the license
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void licensesGridView_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
 {
     EditLicense();
 }
コード例 #12
0
 private void ugdObracuni_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
 {
     Update(null, null);
 }
コード例 #13
0
 private void _grid_Policies_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
 {
     EditPolicy(null, null);
 }