private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { DialogResult dialogResult = MessageBox.Show("确认保存吗?", "保存", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dialogResult == DialogResult.Yes) { Frm面料选择.mianliao = (String)tileView1.GetRowCellValue(e.Item.RowHandle, "materialname"); String id = (String)tileView1.GetRowCellValue(e.Item.RowHandle, "materialid"); this.Model.Dto定制下单.build面料(id); foreach (面料信息dto dto in this.Model.面料信息) { if (dto.tab == "m") { this.Model.面料信息.Remove(dto); this.Model.面料信息.Add(new 面料信息dto(this.Model.Dto定制下单.SYTLE_FABRIC_ID)); break; } } if (this.changeFlag == true) { FabricService.ChangeFabric(this.sys_styleid, id);//更新数据库 } this.Close(); } }
private void tv_menu_ItemDoubleClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { if (tv_menu.SelectedRowsCount <= 0) { return; } DataRow dr = tv_menu.GetFocusedDataRow(); DataTable dt_urun_gruplari = SQL.get("SELECT mug.urun_grubu_id, mug.miktar FROM menu_urun_gruplari mug INNER JOIN urun_gruplari ug ON ug.silindi = 0 AND ug.urun_grubu_id = mug.urun_grubu_id WHERE mug.silindi = 0 AND mug.menu_id = " + dr["menu_id"]); bool ilk = true; for (int i = 0; i < dt_urun_gruplari.Rows.Count; i++) { for (int j = 0; j < Convert.ToInt32(dt_urun_gruplari.Rows[i]["miktar"]); j++) { using (var form = new pos_masa_menu_urun_sec(Convert.ToInt32(dr["menu_id"]), Convert.ToInt32(dt_urun_gruplari.Rows[i]["urun_grubu_id"]), adisyon_id, (ilk ? Convert.ToDecimal(dr["fiyat"]) : 0))) { var result = form.ShowDialog(); } ilk = false; } } this.Close(); }
private void tileView1_ItemRightClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { DialogResult dialogResult = MessageBox.Show("确认选择该款式?", "款式选择", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dialogResult == DialogResult.Yes) { this.model.Dto定制下单.build选中款式(this.tileView1.GetRowCellValue(e.Item.RowHandle, "StyleId").ToString(), this.tileView1.GetRowCellValue(e.Item.RowHandle, "STYLE_CATEGORY_CD").ToString(), this.tileView1.GetRowCellValue(e.Item.RowHandle, "STYLE_FIT_CD").ToString(), this.tileView1.GetRowCellValue(e.Item.RowHandle, "STYLE_SIZE_GROUP_CD").ToString(), this.tileView1.GetRowCellValue(e.Item.RowHandle, "MaterialId").ToString());//添加选中款式数据 // 控件行为 this.mianliaoname.Text = this.tileView1.GetRowCellValue(e.Item.RowHandle, "MaterialNameCn").ToString(); // TODO 改为tileview,不准传任何控件进去 // TODO 不允许使用DataTable ImpService.LoadChiCunCard(this); // TODO 不准传任何控件进去 // TODO 不允许使用DataTable ImpService.LoadSheJiDian(this, this.model.Dto定制下单.Style_Id); this.model.build款式信息款式("style", this.tileView1.GetRowCellValue(e.Item.RowHandle, "StyleNameCn").ToString(), this.tileView1.GetRowCellValue(e.Item.RowHandle, "STYLE_CATEGORY_CD").ToString(), (Image)this.tileView1.GetRowCellValue(e.Item.RowHandle, "Picture")).build款式信息面料(this.model.Dto定制下单.SYTLE_FABRIC_ID);//添加更新款式信息 this.gridControlSI.DataSource = this.model.面料信息; this.model.build款式全尺寸(this.model.Dto定制下单.Style_Id); Frm定制下单修改尺寸.stylesizedt = StyleService.StyleCombobox(this.model.Dto定制下单.Style_Id); this.chicun01.Items.Clear(); if (Frm定制下单修改尺寸.stylesizedt != null) { foreach (DataRow dr in Frm定制下单修改尺寸.stylesizedt.Rows) { this.chicun01.Items.Add(Convert.ToString(dr["尺寸"])); } } this.addPics(); this.xtraTabControl1.SelectedTabPage = this.xtraTabControl1.TabPages[1]; } }
private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { try { this.card.build设计点((String)tileView1.GetRowCellValue(e.Item.RowHandle, "item_name"), (String)tileView1.GetRowCellValue(e.Item.RowHandle, "item_cd"), (String)tileView1.GetRowCellValue(e.Item.RowHandle, "item_value"), (String)tileView1.GetRowCellValue(e.Item.RowHandle, "picn"), (Image)tileView1.GetRowCellValue(e.Item.RowHandle, "picture")); } catch { } try { this.Dto设计点.build设计点( (String)tileView1.GetRowCellValue(e.Item.RowHandle, "item_name") , (String)tileView1.GetRowCellValue(e.Item.RowHandle, "item_value") , (Image)tileView1.GetRowCellValue(e.Item.RowHandle, "picture") ); } catch { } if (this.changeOrderFlag == true) { try { ItemService.Change设计点(this.Dto设计点, this.styleid); } catch (Exception ex) { MessageBox.Show(ex.Message); } } this.Close(); }
private void tileView_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { if (!IsEmptyItem(e.Item.RowHandle)) { return; } }
private void tileView2_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { position = e.Item.RowHandle; if (position == 0) { gridControl1.DataSource = products; gridControl1.RefreshDataSource(); tileView2.RefreshData(); } else { productsFamily.Clear(); foreach (FamilyRest family in _familyController.listForId(_familyController.ListAll()[position].Id).familias) { foreach (Product product in products) { if (family.ProductoId == product.Id) { productsFamily.Add(product); } } } gridControl1.DataSource = productsFamily; gridControl1.RefreshDataSource(); tileView2.RefreshData(); } }
private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { int item_id = (int)tileView1.GetRowCellValue(e.Item.RowHandle, Id); EventView eventView = EventViews.First(t => t.Id == item_id); eventView.Checked = !eventView.Checked; }
private void tileViewNhanVien_ItemDoubleClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { DataRowView row = (DataRowView)tileViewNhanVien.GetRow(tileViewNhanVien.GetSelectedRows()[0]); txtMaNV.Text = row[1].ToString(); txtTenNV.Text = row[2].ToString(); txtSDT.Text = row[7].ToString(); txtDiaChi.Text = row[4].ToString(); txtUser.Text = row[5].ToString(); txtPass.Text = row[6].ToString(); if (row[3].ToString().Trim() == Set.Nam) { rdoNam.Checked = true; rdoNu.Checked = false; } else { rdoNam.Checked = false; rdoNu.Checked = true; } lkuChucVu.EditValue = row[9].ToString(); DataTable dt = _nhanvienModel.GetImage(txtMaNV.Text); //BinaryFormatter bf = new BinaryFormatter(); //MemoryStream ms = new MemoryStream(); //bf.Serialize(ms, dt.Rows[0]["HinhAnhNV"]); byte[] arrpic = (new UnicodeEncoding()).GetBytes(dt.Rows[0]["HinhAnhNV"].ToString()); imgChonAnh.Image = _unityClass.CovertBytetoImage(arrpic); }
private void tileView1_ItemPress(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { var row = tileView1.GetFocusedRow() as CotacaoMonetaria; if (row != null) { showCotacaoMonetariaFromMoeda(row); } }
private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { if (e.Item["payway"].ToString() == "添加收银方式") { MyForm.More.cantingSetUp.EditPayWayNameForm editPayWayName = new MyForm.More.cantingSetUp.EditPayWayNameForm(-1, "", list, 2); editPayWayName.StartPosition = FormStartPosition.CenterScreen; editPayWayName.ShowDialog(); RefreshList(); } }
private void TviewFilter_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { if (!IsMulti.Checked) { users.ForEach(t => t.IsChecked = false); GridCtlFilter.RefreshDataSource(); } ((FilterItem)TviewFilter.GetRow(e.Item.RowHandle)).IsChecked = !(bool)(TviewFilter.GetRowCellValue(e.Item.RowHandle, tIsChecked)); TviewFilter.RefreshRow(e.Item.RowHandle); }
private void TileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { var codeCol = tileView1.Columns["code"]; string code = tileView1.GetRowCellDisplayText(e.Item.RowHandle, codeCol); var nameCol = tileView1.Columns["name"]; string name = tileView1.GetRowCellDisplayText(e.Item.RowHandle, nameCol); this.Message = code + " " + name;// pass a string from this window to the one it opens, set this property if some messages need to be passed MainForm mainForm = (MainForm)this.Tag; mainForm.ChangeNavigationFramePageIndex(MainForm.Modules.Capture); }
private void jobTileView_ItemDoubleClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { if (this.jobTileView.GetFocusedRow() is JobSettings job) { using (var editForm = new JobEditForm()) { editForm.SetCurrent(job); var dialogResult = editForm.ShowDialog(this); jobTileView.UpdateCurrentRow(); LoadData(); } } }
private void TileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { // update database and set custom color var codeCol = tileView1.Columns["code"]; string code = tileView1.GetRowCellDisplayText(e.Item.RowHandle, codeCol); int currentState = Repository.SimpleDBHelper.GetAttendanceState(code); int newState = currentState % 4 + 1; Repository.SimpleDBHelper.SetAttendanceState(code, newState); // set custom color e.Item.Elements[4].Appearance.Normal.BackColor = this.attendanceStateColor[newState]; }
private void tileView款式异常_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { String style_id = this.tileView款式异常.GetRowCellValue(e.Item.RowHandle, "SYS_STYLE_ID").ToString(); try { this.款式异常Model.build送审款式(style_id); } catch (Exception exception) { MessageBox.Show(exception.Message); } this.gridControl待办.DataSource = this.款式异常Model.送审款式; this.gridView待办.RefreshData(); }
private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { if (position > 0) { int idProd = _productcategory[e.Item.RowHandle].Id; int idStock = _stockController.getStockArmazemProduct(idProd, 0).Id; toGdvControlerProducts(idStock); } else { int idProd = product[e.Item.RowHandle].Id; int idStock = _stockController.getStockArmazemProduct(idProd, 0).Id; toGdvControlerProducts(idStock); } }
private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { string str = this.tileView1.GetRowCellValue(this.tileView1.FocusedRowHandle, "str").ToString(); int itemKey = Convert.ToInt32(this.tileView1.GetRowCellValue(this.tileView1.FocusedRowHandle, "itemKey")); decimal sprice = Convert.ToDecimal(this.tileView1.GetRowCellValue(this.tileView1.FocusedRowHandle, "sprice")); int standardkey = Convert.ToInt32(this.tileView1.GetRowCellValue(this.tileView1.FocusedRowHandle, "standardkey")); string standardname = Convert.ToString(this.tileView1.GetRowCellValue(this.tileView1.FocusedRowHandle, "standardname")); if (str != "取消") { MyModels.selected_category_items.temp.itemKey = itemKey; MyModels.selected_category_items.temp.sprice = sprice; MyModels.selected_category_items.temp.standardkey = standardkey; MyModels.selected_category_items.temp.standardname = standardname; } this.MyEvent(); this.Close(); }
private void tileView2_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { position = e.Item.RowHandle; if (position == 0) { gridControl1.DataSource = product; gridControl1.RefreshDataSource(); tileView2.RefreshData(); } else { _productcategory.Clear(); foreach (Product item in _categoryController.ListALL()[position].produtos) { _productcategory.Add(item); } gridControl1.DataSource = _productcategory; gridControl1.RefreshDataSource(); tileView2.RefreshData(); } /* if (position == 0) * { * gridControl1.DataSource = products; * gridControl1.RefreshDataSource(); * tileView2.RefreshData(); * } * else * { * productsFamily.Clear(); * foreach (FamilyRest family in _familyController.listForId(_familyController.ListAll()[position].Id).familias) * { * foreach (Product product in products) * { * if (family.ProductoId == product.Id) * { * productsFamily.Add(product); * } * } * * }*/ }
private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { Table t = mesa[e.Item.RowHandle]; idMesa = t.Id; switch (activeConstructor) { case POSCONSTRUCTOR: if (function == 2) { if (isOcupad(idMesa)) { frmPos.tableSelected(t); frmPos.setTable(t); } else { MessageBox.Show("Essa mesa não está em utilização "); } } else { if (isOcupad(idMesa)) { MessageBox.Show("Essa mesa está ocupada"); } else { frmPos.setTable(t); } } Close(); break; default: break; } }
private void tv_urun_ItemDoubleClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { if (tv_urun.SelectedRowsCount <= 0) { return; } DataRow dr = tv_urun.GetFocusedDataRow(); int urun_id = Convert.ToInt32(dr["urun_id"]); int sicak_satis = Convert.ToInt32(dr["sicak_satis"]); if (sicak_satis == 1) { pos_masa_sicak_satis dlg = new pos_masa_sicak_satis(urun_id, adisyon_id, 1, menu_id, fiyat); dlg.ShowDialog(); } else { SQL.set("INSERT INTO adisyon_kalem (adisyon_id, urun_id, miktar, kaydeden_kullanici_id, menu_id, fiyat) VALUES (" + adisyon_id + ", " + urun_id + ", 1, " + SQL.kullanici_id + ", " + menu_id + ", " + fiyat.ToString().Replace(',', '.') + ")"); SQL.set("INSERT INTO urunler_hareket (urun_id, hareket_tipi_parametre_id, miktar, referans_id, birim_fiyat) VALUES (" + urun_id + ", 3, -1, " + adisyon_id + ", 0.0000)"); } this.Close(); }
private void tileViewNhanVien_ItemDoubleClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { try { DataRowView row = (DataRowView)tileViewNhanVien.GetRow(tileViewNhanVien.GetSelectedRows()[0]); txtMaNV.Text = row[0].ToString(); txtTenNV.Text = row[1].ToString(); txtSDT.Text = row[6].ToString(); txtDiaChi.Text = row[3].ToString(); txtUser.Text = row[4].ToString(); txtPass.Text = row[5].ToString(); if (row[2].ToString().Trim() == Set.Nam) { rdoNam.Checked = true; rdoNu.Checked = false; } else { rdoNam.Checked = false; rdoNu.Checked = true; } lkuChucVu.Properties.NullText = row[9].ToString(); if (row[7] == null || string.IsNullOrEmpty(row[7].ToString())) { return; } byte[] data = new byte[0]; data = (byte[])(row[7]); MemoryStream ms = new MemoryStream(data); imgChonAnh.Image = Image.FromStream(ms); } catch (Exception ex) { XtraMessageBox.Show(ex.Message, Commons.Notify, MessageBoxButtons.OK); } }
private void OnItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { ((MainForm)FindForm().MdiParent).ShowExchange(((LogoInfo)this.tileViewSelector.GetRow(e.Item.RowHandle)).Exchange); }
private void tileView1_ItemDoubleClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { DisplayTinhTrangPhongWithSelectedTile(); }
private void tileView1_ItemPress(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { checkedRows.Clear(); tileView1.RefreshData(); //checkedRows.Add(tileView1.GetFocusedDataSourceRowIndex()); }
private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { String ID = (String)tileView1.GetRowCellValue(e.Item.RowHandle, "ID"); this.show设计点(ID); }
private void TviewFilter_ItemPress(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { _selectedindex = e.Item.RowHandle; SelectedItem = TviewFilter.GetRow(e.Item.RowHandle) as FilterItem; TviewFilter.ViewCaption = SelectedItem.Name; }
private void gVProductsSelected_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { row = e.Item.RowHandle; }
private void tileView1_ItemDoubleClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { new Frm设计点(this.model.Dto定制下单.Dto设计点s[this.tileView1.FocusedRowHandle], Enum选择设计点类型.全部, this.Style_Id).ShowDialog(); }
private void tileViewStok_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { }
private void TView_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) { ((TaskDevice)TView.GetRow(e.Item.RowHandle)).IsChecked = !(bool)(TView.GetRowCellValue(e.Item.RowHandle, tIsChecked)); TView.RefreshRow(e.Item.RowHandle); }