Пример #1
0
 public void Open(bool t, DataTable dtt)
 {
     gridView1.Columns.Clear();
     GetColorSize();
     dt = AmountListClass.GetList(dtt);
     this.gridView1.CustomRowCellEdit -= new DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventHandler(this.gridView1_CustomRowCellEdit);
     dtt.TableName           = "tableName";
     gridControl1.DataSource = dt;
     FormOpen.SunRow(dt);
     FormOpen.ReSumTable(dt);
     this.gridView1.CustomRowCellEdit += new DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventHandler(this.gridView1_CustomRowCellEdit);
     _isCanEdit = t;
     _IsEdit    = true;
     gridView1.OptionsBehavior.Editable = t;
     SetWidth();
 }
Пример #2
0
 public void Open(int mainID, int TableTypeID, bool t, int AmountTypeID)
 {
     gridView1.Columns.Clear();
     _mainID      = mainID;
     _tableTypeID = TableTypeID;
     this.gridView1.CustomRowCellEdit -= new DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventHandler(this.gridView1_CustomRowCellEdit);
     dt                      = BasicClass.GetDataSet.GetDS(bllOT, "ShowTemInfo", new object[] { _mainID, _tableTypeID, t, AmountTypeID }).Tables[0];
     dt.TableName            = "tableName";
     gridControl1.DataSource = dt;
     FormOpen.SunRow(dt);
     FormOpen.ReSumTable(dt);
     this.gridView1.CustomRowCellEdit += new DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventHandler(this.gridView1_CustomRowCellEdit);
     _isCanEdit = false;
     GetColorSize();
     SetWidth();
 }
Пример #3
0
 public void ShowInfo(int MaterielID, int BrandID, bool t, DataTable dtt)
 {
     gridView1.Columns.Clear();
     GetColorSize();
     _mainID      = MaterielID;
     dt           = dtt;
     _tableTypeID = BrandID;
     this.gridView1.CustomRowCellEdit -= new DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventHandler(this.gridView1_CustomRowCellEdit);
     dtt.TableName           = "tableName";
     gridControl1.DataSource = dt;
     FormOpen.SunRow(dt);
     FormOpen.ReSumTable(dt);
     this.gridView1.CustomRowCellEdit += new DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventHandler(this.gridView1_CustomRowCellEdit);
     _isCanEdit = false;
     _IsEdit    = true;
     gridView1.OptionsBehavior.Editable = t;
 }