Exemple #1
0
        private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            edtMaGV.Text             = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "MaGV").ToString();
            edtHoTen.Text            = (string)gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "TenGV");
            edtLuong.Text            = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Luong").ToString();
            dateEdtNgaySinh.DateTime = (DateTime)gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "NgaySinh");
            nmrThamNien.Value        = (int)gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "ThamNien");
            cbbHocVi.Text            = (string)gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "HocVi");
            cbbMail.Text             = (string)gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Mail");

            edtMaGV.Enabled         = false;
            edtHoTen.Enabled        = false;
            edtLuong.Enabled        = false;
            dateEdtNgaySinh.Enabled = false;
            nmrThamNien.Enabled     = false;
            cbbHocVi.Enabled        = false;
            cbbMail.Enabled         = false;
        }
Exemple #2
0
        private void view_subTbl_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            if (view_subTbl.SelectedRowsCount > 0)
            {
                d1 = view_subTbl.GetRowCellValue(view_subTbl.FocusedRowHandle, "subCode").ToString();
                d2 = view_subTbl.GetRowCellValue(view_subTbl.FocusedRowHandle, "subDescription").ToString();
                d3 = view_subTbl.GetRowCellValue(view_subTbl.FocusedRowHandle, "lec").ToString();
                d4 = view_subTbl.GetRowCellValue(view_subTbl.FocusedRowHandle, "lab").ToString();
                d5 = view_subTbl.GetRowCellValue(view_subTbl.FocusedRowHandle, "units").ToString();
                d6 = view_subTbl.GetRowCellValue(view_subTbl.FocusedRowHandle, "id").ToString();

                tbxsubcode.Text = d1;
                tbxsubject.Text = d2;
                tbxlec.Text     = d3;
                tbxlab.Text     = d4;
                tbxunits.Text   = d5;
            }
        }
Exemple #3
0
 void gv_Commodity_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     if (this.gv_Commodity.FocusedColumn == Column_choose)
     {
         var detail = this.gv_Commodity.GetFocusedRow() as TraindateCommodity;
         if (detail == null)
         {
             return;
         }
         switch (e.Clicks)
         {
         case 1:
             detail.Choose = !detail.Choose;
             this.gc_Commodity.RefreshDataSource();
             break;
         }
     }
 }
 private void gridView_Origin_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     try
     {
         if (e.RowHandle >= 0)
         {
             _objRequestLicenseKey = (RequestLicenseKey)gridView_Origin.GetRow(e.RowHandle);
             FillData();
             LoadCurrentLicense();
             date_ExpDate.EditValue    = DALCommon.Inst.GetTimeServer().AddDays(30);
             groupBuildLicense.Enabled = true;
         }
     }
     catch (Exception ex)
     {
         LogError.WriteLogError("gridView_Origin_RowClick: ", ex);
     }
 }
 private void gridView2_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     try
     {
         lbID_VT.Text      = gridView2.GetFocusedRowCellValue("VT_ID").ToString();
         txtTenVT.Text     = gridView2.GetFocusedRowCellValue("VT_TEN").ToString();
         txtDVT.Text       = gridView2.GetFocusedRowCellValue("CTPN_DONVITINH").ToString();
         txtHoatChat.Text  = gridView2.GetFocusedRowCellValue("CTPN_HOATCHAT").ToString();
         txtHamLuong.Text  = gridView2.GetFocusedRowCellValue("CTPN_HAMLUONG").ToString();
         txtQuyCach.Text   = gridView2.GetFocusedRowCellValue("CTPN_QCDONGGOI").ToString();
         dtpNgaySX.Text    = gridView2.GetFocusedRowCellValue("CTPN_NGAYSANXUAT").ToString();
         dtpHanSuDung.Text = gridView2.GetFocusedRowCellValue("CTPN_HANSUDUNG").ToString();
         txtSoLo.Text      = gridView2.GetFocusedRowCellValue("CTPN_SOLO").ToString();
         lbIDNK.Text       = gridView2.GetFocusedRowCellValue("ID_NHAPKHOCHITIET").ToString();
         lbSoLgTon.Text    = gridView2.GetFocusedRowCellValue("CTPN_SOLUONG").ToString();
     }
     catch { }
 }
Exemple #6
0
 void gv_item_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     if (this.gv_charge_item.FocusedColumn == Column_Choose)
     {
         var detail = this.gv_charge_item.GetFocusedRow() as ChargeItem;
         if (detail == null)
         {
             return;
         }
         switch (e.Clicks)
         {
         case 1:
             detail.Choose = !detail.Choose;
             this.gc_charge_item.RefreshDataSource();
             break;
         }
     }
 }
Exemple #7
0
 private void gridView_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     try
     {
         txtmaterialcode.Text = gridView.GetFocusedRowCellValue("materialcode").ToString();
         txtvendorcode.Text   = gridView.GetFocusedRowCellValue("vendorcode").ToString();
         txtMouldcode.Text    = gridView.GetFocusedRowCellValue("Mouldcode").ToString();
         txtMouldtype.Text    = gridView.GetFocusedRowCellValue("Mouldtype").ToString();
         txtColorMode.Text    = gridView.GetFocusedRowCellValue("ColorMode").ToString();
         txtMouldQty.Text     = gridView.GetFocusedRowCellValue("MouldQty").ToString();
         txtCavityQty.Text    = gridView.GetFocusedRowCellValue("CavityQty").ToString();
         txtMouldLife.Text    = gridView.GetFocusedRowCellValue("MouldLife").ToString();
         txtRestQty.Text      = gridView.GetFocusedRowCellValue("RestQty").ToString();
     }
     catch
     {
     }
 }
Exemple #8
0
 void gv_GroupAppointClassCar_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     if (this.gv_GroupAppointClassCar.FocusedColumn == Column_Choose)
     {
         var detail = this.gv_GroupAppointClassCar.GetFocusedRow() as GroupAppointClassCar;
         if (detail == null)
         {
             return;
         }
         switch (e.Clicks)
         {
         case 1:
             detail.Choose = !detail.Choose;
             this.gc_GroupAppointClassCar.RefreshDataSource();
             break;
         }
     }
 }
Exemple #9
0
        private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

            DataRow dr       = gridView1.GetDataRow(gridView1.FocusedRowHandle);
            string  pkDestek = dr["pkDestek"].ToString();

            DestekDetaylistesi(pkDestek);

            //if (gridView1.FocusedRowHandle < 0) return;

            //DataRow dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);

            //MusteriDestekDetayTalepleri(dr["pkDestek"].ToString());
        }
Exemple #10
0
        private void gridView2_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            DataRow row   = gridView2.GetDataRow(gridView2.FocusedRowHandle);
            string  PO_No = row["orderNo"].ToString();

            Inventory.Meterial_Receipt_Report NewMrr = new Inventory.Meterial_Receipt_Report(PO_No, null);
            if (row["status"] + "" != "MRR Created")
            {
                NewMrr.ShowDialog();
                loadData();
            }
            else
            {
                MessageBox.Show("Purchase Order Closed...\nMRR Already Created");
            }
            NewMrr.ShowDialog();
            loadData();
        }
Exemple #11
0
 /// <summary>
 /// 双击查询明细
 /// </summary>
 private void gridViewIAHead_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     try
     {
         if (e.Clicks == 2 && e.Button == MouseButtons.Left)
         {
             string inventoryAdjustmentsNoStr = DataTypeConvert.GetString(gridViewIAHead.GetFocusedDataRow()["InventoryAdjustmentsNo"]);
             FrmInventoryAdjustments_Drag.queryIAHeadNo   = inventoryAdjustmentsNoStr;
             FrmInventoryAdjustments_Drag.queryListAutoId = 0;
             ViewHandler.ShowRightWindow("FrmInventoryAdjustments_Drag");
         }
     }
     catch (Exception ex)
     {
         //ExceptionHandler.HandleException(this.Text + "--双击查询明细错误。", ex);
         ExceptionHandler.HandleException(this.Text + "--" + f.tsmiSjcxmxcw.Text, ex);
     }
 }
Exemple #12
0
 private void gv_Clinic_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     try
     {
         var selectedRow = this.gv_Clinic.GetFocusedRow() as ClinicInfoEntity;
         if (selectedRow == null)
         {
             return;
         }
         selectedRow.deptId = treeMenuControl1.EditValue;
         dcClinc.SetValue(selectedRow);
         groupBox3.Enabled = true;
     }
     catch (Exception ex)
     {
         Log4net.LogHelper.Error("诊室修改错误信息:" + ex.Message);
     }
 }
Exemple #13
0
        private void gvKH_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            DataRow red = gridView2.GetFocusedDataRow();

            //MessageBox.Show(red["Họ Tên"].ToString());
            maKH          = red["Mã Khách Hàng"].ToString();
            lbMaKH.Text   = maKH;
            tbTenKH.Text  = red["Họ tên"].ToString();
            tbSDT.Text    = red["Số Điện Thoại"].ToString();
            tbDiaChi.Text = red["Địa Chỉ"].ToString();

            //mếu chọn khách hàng có sẵn thì cho readonly -> kg cho sửa
            tbTenKH.Enabled  = false;
            tbSDT.Enabled    = false;
            tbDiaChi.Enabled = false;
            btTaoKH.Enabled  = false;
            //btHuyPX.Enabled = true;
        }
Exemple #14
0
        private void gridView1_RowClick_1(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            var temp = (ToolsEntity)gridView1.GetFocusedRow();
            var tool = toolContext.Tools.Where(c => c.Id == temp.Id).FirstOrDefault();

            if (tool != null)
            {
                using (FrmToolEdit frm = new FrmToolEdit(tool, dLookFeel.LookAndFeel.ActiveSkinName))
                {
                    DialogResult ret = frm.ShowDialog();
                    if (ret == DialogResult.OK)
                    {
                        GetExpDataDelegate del = new GetExpDataDelegate(GetExpDataAsync);
                        this.BeginInvoke(del);
                    }
                }
            }
        }
Exemple #15
0
 /// <summary>
 /// 批次数据行Click事件。
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gvLotInfo_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     if (e.RowHandle > -1)
     {
         object printFlag = gvLotInfo.GetRowCellValue(e.RowHandle, POR_LOT_FIELDS.FIELD_IS_PRINT);
         if (printFlag == null || printFlag.ToString() == string.Empty)
         {
             return;
         }
         _printFlag = printFlag.ToString();
         _lotNumber = gvLotInfo.GetRowCellValue(e.RowHandle, POR_LOT_FIELDS.FIELD_LOT_NUMBER).ToString();
         rowHandle  = e.RowHandle;
         if (e.Button == MouseButtons.Right)
         {
             AddContextMenu();
         }
     }
 }
Exemple #16
0
 void gv_Employee_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     if (this.gv_Employee.FocusedColumn == Column_choose)
     {
         var _employee = gv_Employee.GetFocusedRow() as Employee;
         if (_employee == null)
         {
             return;
         }
         switch (e.Clicks)
         {
         case 1:
             _employee.Choose = !_employee.Choose;
             gc_Employee.RefreshDataSource();
             break;
         }
     }
 }
Exemple #17
0
 void gv_TicketRule_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     if (this.gv_TicketRule.FocusedColumn == gridColumn_Choose)
     {
         var detail = this.gv_TicketRule.GetFocusedRow() as TicketRule;
         if (detail == null)
         {
             return;
         }
         switch (e.Clicks)
         {
         case 1:
             detail.Choose = !detail.Choose;
             this.gc_TicketRule.RefreshDataSource();
             break;
         }
     }
 }
Exemple #18
0
 private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     if (signSi == "1")
     {
         if (gridView1.FocusedRowHandle >= 0 && gridView1.FocusedRowHandle <= gridView1.RowCount - 1)
         {
             int num = gridView1.FocusedRowHandle;
             if (gridView1.GetDataRow(num)["check"].ToString( ) == "True")
             {
                 gridView1.GetDataRow(num)["check"] = false;
             }
             else
             {
                 gridView1.GetDataRow(num)["check"] = true;
             }
         }
     }
 }
Exemple #19
0
        private void gv_Car_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            var row = gv_Car.GetRow(e.RowHandle) as Car;

            if (row == null || e.HitInfo.Column == null)
            {
                return;
            }
            switch (e.Clicks)
            {
            case 1:
                if (e.HitInfo.Column.FieldName != "Choose")
                {
                    break;
                }
                row.Choose = !row.Choose;
                gc_Car.RefreshDataSource();
                var selCount = _cars.FindAll(m => m.Choose).Count;
                if (_cars.Count == selCount)
                {
                    chkCheckAll.CheckState = CheckState.Checked;
                }
                else if (_cars.Count > selCount && selCount > 0)
                {
                    chkCheckAll.CheckState = CheckState.Indeterminate;
                }
                else
                {
                    chkCheckAll.CheckState = CheckState.Unchecked;
                }
                break;

            case 2:
                int TopIndex = gv_Car.TopRowIndex;
                row.Choose     = false;
                row.IsSelected = true;
                Selectedcars.Add(row);
                gc_Car.DataSource = Cars;
                gc_Car.RefreshDataSource();
                gv_Car.TopRowIndex = TopIndex;
                gcSelect.RefreshDataSource();
                break;
            }
        }
        private void gvList_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            try
            {
                Log.Info(GetType() + "->" + ApplicationCommon.GetMethodName() + "---START");
                if (gvWorkstation.FocusedRowHandle < 0)
                {
                    return;
                }


                //获得工作站id
                string workstationId = gvWorkstation.GetFocusedRowCellValue("F_WORKSTATION_ID").ToString();

                //上位机与供电柜关系绑定数据
                gcPower.DataSource = _bllDevWorkstationInfo.GetPowersRelatedToWorkstation(workstationId).Tables[0];

                gvPower.ActiveFilterString = "F_CHECK = 1";



                //上位机与下位机绑定数据
                gcSubordinate.DataSource = _bllDevWorkstationInfo.GetSubordinatesRelatedToWorkstation(workstationId).Tables[0];

                gvSubordinate.ActiveFilterString = "F_CHECK = 1";


                //上位机与线圈电源绑定数据
                gcCoilPower.DataSource = _bllDevWorkstationInfo.GetCoilPowersRelatedToWorkstation(workstationId).Tables[0];

                gvCoilPower.ActiveFilterString = "F_CHECK = 1";


                //上位机与传感器绑定数据
                gcSensor.DataSource = _bllDevWorkstationInfo.GetSensorsRelatedToWorkstation(workstationId).Tables[0];

                gvSensor.ActiveFilterString = "F_CHECK = 1";
            }
            catch (Exception ex)
            {
                Log.Error(GetType() + "->" + ApplicationCommon.GetMethodName() + "---FAILED", ex);
                throw ex;
            }
        }
Exemple #21
0
 private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     //DataRow row = gridView1 . GetFocusedDataRow ( );
     //if ( row != null )
     //{
     //    if ( row [ "check" ] . ToString ( ) == "True" )
     //    {
     //        row [ "check" ] = false;
     //        if ( strList . Contains ( row [ "RAA001" ] . ToString ( ) + row [ "RAA015" ] . ToString ( ) ) )
     //            strList . Remove ( row [ "RAA001" ] . ToString ( ) + row [ "RAA015" ] . ToString ( ) );
     //    }
     //    else
     //    {
     //        row [ "check" ] = true;
     //        if ( !strList . Contains ( row [ "RAA001" ] . ToString ( ) + row [ "RAA015" ] . ToString ( ) ) )
     //            strList . Add ( row [ "RAA001" ] . ToString ( ) + row [ "RAA015" ] . ToString ( ) );
     //    }
     //}
 }
 private void dxgvDatos_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     try
     {
         if (e.Clicks == 2 && e.RowHandle >= 0)
         {
             FilaGrid = dxgvDatos.GetDataRow(e.RowHandle);
             FrmEmpleados EditaEmpleado = new FrmEmpleados(ModoOperacion.Consulta, FilaGrid, this)
             {
                 MdiParent = this.MdiParent
             };
             EditaEmpleado.Show();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemple #23
0
 /// <summary>
 /// 双击查询明细
 /// </summary>
 private void gridViewOrderList_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     try
     {
         if (e.Clicks == 2 && e.Button == MouseButtons.Left)
         {
             string orderHeadNoStr = DataTypeConvert.GetString(gridViewOrderList.GetFocusedDataRow()["OrderHeadNo"]);
             int    autoIdInt      = DataTypeConvert.GetInt(gridViewOrderList.GetFocusedDataRow()["AutoId"]);
             FrmOrder_Drag.queryOrderHeadNo = orderHeadNoStr;
             FrmOrder_Drag.queryListAutoId  = autoIdInt;
             ViewHandler.ShowRightWindow("FrmOrder_Drag");
         }
     }
     catch (Exception ex)
     {
         //ExceptionHandler.HandleException(this.Text + "--双击查询明细错误。", ex);
         ExceptionHandler.HandleException(this.Text + "--" + f.tsmiSjcxmxcw.Text, ex);
     }
 }
 /// <summary>
 ///     ''' Evento ejecutado al dar click sobre una fila del grid
 ///     ''' </summary>
 ///     ''' <param name="sender"></param>
 ///     ''' <param name="e"></param>
 ///     ''' <remarks></remarks>
 private void dxgvDatos_RowClick(System.Object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     try
     {
         if (e.Clicks == 2)
         {
             if (e.RowHandle >= 0 && cerrarClick)
             {
                 FilaGrid     = dxgvDatos.GetDataRow(e.RowHandle);
                 DialogResult = DialogResult.OK;
                 Close();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemple #25
0
        /// <summary>
        /// 点击工作台的GridView的行信息获取该角色信息
        /// 返回到页面标签栏
        /// </summary>
        private void roleView_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            if (e.RowHandle > -1)
            {
                CtrlState                = ControlState.Edit;
                _roleEntity              = new Role();
                _roleEntity.RoleKey      = this.roleView.GetRowCellValue(e.RowHandle, this.ROLE_KEY).ToString();
                this.txtRoleName.Text    = this.roleView.GetRowCellValue(e.RowHandle, this.ROLE_NAME).ToString();
                this.txtDescription.Text = this.roleView.GetRowCellValue(e.RowHandle, this.DESCRIPTIONS).ToString();
                this.txtRemark.Text      = this.roleView.GetRowCellValue(e.RowHandle, this.REMARK).ToString();

                _roleEntity.RoleName             = this.txtRoleName.Text;
                _roleEntity.Description          = this.txtDescription.Text;
                _roleEntity.Remark               = this.txtRemark.Text;
                _roleEntity.Editor               = this.roleView.GetRowCellValue(e.RowHandle, editor).ToString();
                _roleEntity.EditTimeZone         = this.roleView.GetRowCellValue(e.RowHandle, edit_timezone).ToString();
                _roleEntity.IsInitializeFinished = true;
            }
        }
Exemple #26
0
 private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     Codigo = Convert.ToString(gridView1.GetFocusedRowCellValue("Codigo"));
     using (var Context = new LiderEntities())
     {
         var Costo  = Context.PRODUCTOes.Where(x => x.Producto1 == Codigo).Select(p => p.Costo).FirstOrDefault();
         var P1     = Context.PRODUCTOes.Where(x => x.Producto1 == Codigo).Select(p => p.PrecMenContado).FirstOrDefault();
         var P2     = Context.PRODUCTOes.Where(x => x.Producto1 == Codigo).Select(p => p.PrecMayContado).FirstOrDefault();
         var MinMay = Context.PRODUCTOes.Where(x => x.Producto1 == Codigo).Select(p => p.minimomay).FirstOrDefault();
         var P3     = Context.PRODUCTOes.Where(x => x.Producto1 == Codigo).Select(p => p.PrecMenCredito).FirstOrDefault();
         var P4     = Context.PRODUCTOes.Where(x => x.Producto1 == Codigo).Select(p => p.PrecMayCredito).FirstOrDefault();
         var MinEsp = Context.PRODUCTOes.Where(x => x.Producto1 == Codigo).Select(p => p.CanEspecial).FirstOrDefault();
         var P5     = Context.PRODUCTOes.Where(x => x.Producto1 == Codigo).Select(p => p.PrecEspecial).FirstOrDefault();
         var P6     = Context.PRODUCTOes.Where(x => x.Producto1 == Codigo).Select(p => p.PrecSEspecial).FirstOrDefault();
         var P7     = Context.PRODUCTOes.Where(x => x.Producto1 == Codigo).Select(p => p.PrecSSEspecial).FirstOrDefault();
         dataGridView1.Rows.Clear();
         dataGridView1.Rows.Add(Costo, P1, MinMay, P2, P3, P4, MinEsp, P5, P6, P7);
     }
 }
Exemple #27
0
        private void gv_Evolucoes_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            try
            {
                if (gv_Evolucoes.GetSelectedRows().Count() > 0)
                {
                    var row = gv_Evolucoes.GetSelectedRow <E_EVENTO>();

                    cde_EvolucaoData.DateTime     = row.DT_EVENTO;
                    cte_EvolucaoStatus.Text       = row.STATUS;
                    cme_EvolucaoObservacao.Text   = row.DS_EVENTO.Treat();
                    bs_EvolucoesAnexos.DataSource = row.ANEXOS;
                }
            }
            catch (Exception excessao)
            {
                Mensagens.Alerta(excessao.Tratar());
            }
        }
 private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     /*
      * id = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "code").ToString());
      * cou.unique.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Unique_num").ToString();
      * txtmid.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Middle_Name").ToString();
      * txtlast.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Last_Name").ToString();
      * txtcell.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Cell_Phone").ToString();
      * txtoffice.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Office_Phone").ToString();
      * txtfax.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Fax").ToString();
      * txtsex.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Sex").ToString();
      * txtmjor.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Major").ToString();
      * txtdegree.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Scientific_degree").ToString();
      * txtqult.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Qualifies").ToString();
      * txtorg.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Organization").ToString();
      * txtnat.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Nationality").ToString();
      * txtdate.Text = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Date").ToString();
      */
 }
        private void gridViewCancelacion_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            try
            {
                ba_prestamo_detalle_Info Info_DetPrest = (ba_prestamo_detalle_Info)gridViewCancelacion.GetFocusedRow();

                if (Info_DetPrest != null)
                {
                    e.HitInfo.Column.FieldName = gridViewCancelacion.FocusedColumn.FieldName;
                }

                if (e.HitInfo.Column.FieldName == "Check")
                {
                    if ((bool)gridViewCancelacion.GetFocusedRowCellValue(colCheck))
                    {
                        gridViewCancelacion.SetFocusedRowCellValue(colCheck, false);
                    }

                    else
                    {
                        foreach (var item in BindLstPrestamo)
                        {
                            if (item.chek_aux == 1)
                            {
                                item.Check    = false;
                                item.chek_aux = 0;
                            }
                        }

                        gridControlCancelacion.RefreshDataSource();

                        gridViewCancelacion.SetFocusedRowCellValue(colCheck, true);
                        gridViewCancelacion.SetFocusedRowCellValue(colchek_aux, 1);
                    }
                }
            }
            catch (Exception ex)
            {
                string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name;
                MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) + ex.Message + " ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
                Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString());
            }
        }
 private void gridView2_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     using (db = new stokTakipEntities1())
     {
         //seçilen rowun demirbasID bilgisi alınıyor
         int[] RowHandles = gridView2.GetSelectedRows();
         foreach (int i in RowHandles)
         {
             demirbasID    = Convert.ToInt32(gridView2.GetRowCellValue(i, gridView2.Columns["DemirbasID"]));
             OdademirbasID = Convert.ToInt32(gridView2.GetRowCellValue(i, gridView2.Columns["OdaDemirbasID"]));
         }
         OdaDemirbasTablosu od = db.OdaDemirbasTablosus.First(x => x.OdaDemirbasID == OdademirbasID);
         spinEditDemirbaslariOdalardanKaldirmaAdet.Enabled = true;
         //secilen demirbasa gore spinedit'e adet bilgisi giriliyor.
         spinEditDemirbaslariOdalardanKaldirmaAdet.Properties.MaxValue = Convert.ToInt32(od.Adet);
         spinEditDemirbaslariOdalardanKaldirmaAdet.Properties.MinValue = 1;
         spinEditDemirbaslariOdalardanKaldirmaAdet.EditValue           = od.Adet;
     }
 }