private void gridViewRowChanged1(object sender) { BaseFocusLabel.Focus(); ColumnView view = sender as ColumnView; ProcessGrid.SetFormValue(this, view); string GBCode = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["GBCode"])); byte[] pic = GetPic(GBCode); if (pic != null) { img1.Image = TemplatePic.ByteToImage(pic); } else { img1.Image = null; } GetItemLabel(GBCode); string sql = "SELECT JCTime,VendorAttn FROM UV1_Dev_GBJCLRDts WHERE GBCode=" + SysString.ToDBString(GBCode); sql += " ORDER BY JCTime DESC"; DataTable dt = SysUtils.Fill(sql); gridView2.GridControl.DataSource = dt; gridView2.GridControl.Show(); }
/// <summary> /// 重新设置实体2 /// </summary> private void gridViewRowChanged1(object sender) { ColumnView view = sender as ColumnView; ProcessGrid.SetFormValue(this, view); txtWHIDBit.Text = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["WHID"])); txtSectionIDBit.Text = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["SectionID"])); this.BindGridSBit(); }
/// <summary> /// 重新设置实体2 /// </summary> private void gridViewRowChanged3(object sender) { ColumnView view = sender as ColumnView; ProcessGrid.SetFormValue(this, view); //txtWHIDBit.Text = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["WHID"])); //txtSectionIDBit.Text = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["SectionID"])); //txtSBitTemp.Text = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["SBitID"])); txtWHIDBit.Text = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["WHID"])); txtSectionIDBit.Text = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["SectionID"])); drpIsUseableBit.EditValue = SysConvert.ToInt32(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["IsUseable"])); txtSBit.Text = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["SBitID"])); txtRemarkBit.Text = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["Remark"])); }
/// <summary> /// /// </summary> /// <param name="sender"></param> private void gridViewRowChanged1(object sender) { BaseFocusLabel.Focus(); ColumnView view = sender as ColumnView; ProcessGrid.SetFormValue(this, view); int MainID = SysConvert.ToInt32(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["MainID"])); string GBCode = SysConvert.ToString(view.GetRowCellValue(view.FocusedRowHandle, view.Columns["GBCode"])); byte[] pic = GetPic(GBCode); if (pic != null) { img1.Image = TemplatePic.ByteToImage(pic); } else { img1.Image = null; } BindGrid2(MainID); GetItemLabel(GBCode); }