コード例 #1
0
 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");
 }
コード例 #2
0
ファイル: DocOperForm.cs プロジェクト: HelenSPR/OptimBaseProf
        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");
        }
コード例 #3
0
        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++;
            }
        }
コード例 #4
0
        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
            });
        }