public void NewOS(DataRow row) { OSWorkItem item = this.WorkItem.Items.AddNew <OSWorkItem>(); item.RootForm.Show(DeklaritMode.Insert, row, false); item.Terminate(); this.WorkItem.Activate(); }
public DataRow ShowOSINVBROJ(DataRow fillByRow) { OSWorkItem item = this.WorkItem.Items.AddNew <OSWorkItem>(); DataAdapterFactory.GetOSDataAdapter().Fill((OSDataSet)item.DataSet, Conversions.ToLong(fillByRow["INVBROJ"])); DataRow row = null; if (item.RootForm.Show(DeklaritMode.Update, fillByRow, false) == DialogResult.OK) { row = DataSetUtil.GetRootTable(item.DataSet).Rows[0]; } item.Terminate(); this.WorkItem.Activate(); return(row); }