Пример #1
0
        public void NewOLAKSICE(DataRow row)
        {
            OLAKSICEWorkItem item = this.WorkItem.Items.AddNew <OLAKSICEWorkItem>();

            item.RootForm.Show(DeklaritMode.Insert, row, false);
            item.Terminate();
            this.WorkItem.Activate();
        }
Пример #2
0
        public DataRow ShowOLAKSICEIDOLAKSICE(DataRow fillByRow)
        {
            OLAKSICEWorkItem item = this.WorkItem.Items.AddNew <OLAKSICEWorkItem>();

            DataAdapterFactory.GetOLAKSICEDataAdapter().Fill((OLAKSICEDataSet)item.DataSet, Conversions.ToInteger(fillByRow["IDOLAKSICE"]));
            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);
        }