private void toolStripMenuItem2_Click(object sender, EventArgs e) { DataRow dataRow = AtGrid.getDataRow((Control)this.gridControl1); if (dataRow == null) return; AtDataSet.dublicate(dataRow)["idservicereason"] = (object)dbconn.GetGenId("gen_servicereason"); }
private void toolStripMenuItem2_Click(object sender, EventArgs e) { DataRow dataRow = AtGrid.getDataRow((Control)this.gridControlDocOper); if (dataRow == null) { return; } AtDataSet.dublicate(dataRow)["iddocoper"] = (object)dbconn.GetGenId("gen_docoper"); }
private void MenuItemDoublicate_Click(object sender, EventArgs e) { DataRow[] selectedDataRows = AtGrid.getSelectedDataRows((Control)this.gridControlItem); if (selectedDataRows == null) { return; } int genFirstId = dbconn.GetGenFirstId("gen_embrasuretype", selectedDataRows.Length); foreach (DataRow source in selectedDataRows) { AtDataSet.dublicate(source)["idembrasuretype"] = (object)genFirstId++; } }
private void toolStripMenuItem2_Click(object sender, EventArgs e) { this.InvokeBeforeDoublicatePriceHistoryEvent((DataRow[])null); DataRow dataRow1 = AtGrid.getDataRow((Control)this.gridPriceHistory); if (dataRow1 == null) { return; } DataRow dataRow2 = AtDataSet.dublicate(dataRow1); dataRow2["idgoodprice"] = (object)dbconn.GetGenId("gen_goodprice"); this.InvokeAfterDoublicatePriceHistoryEvent(new DataRow[1] { dataRow2 }); }