private void btmOK_Click(object sender, EventArgs e)
        {
            this.mfiInsert.strEquipTagPty = this.tbTag.Text.Trim();
            this.mfiInsert.tsDurationPty  = TimeSpan.Parse(this.tbDuration.Text.Trim());
            this.mfiInsert.strTipPty      = this.tbTip.Text.Trim();
            this.mfiInsert.tsTimePty      = TimeSpan.Parse(this.tbTime.Text.Trim());
            this.mfiInsert.intIDPty       = this.mfiInsert.Insert(this.cnConnection);

            foreach (DataRow drPerson in this.dsPersons.Tables["tabMaintenanceFurnacePersons"].Rows)
            {
                drPerson["intTabItemsID"] = this.mfiInsert.intIDPty;
            }
            foreach (DataRow drEquip in this.dsEquips.Tables["tabMaintenanceFurnaceEquips"].Rows)
            {
                drEquip["intTabItemsID"] = this.mfiInsert.intIDPty;
            }

            MaintenanceFurnaceItem.InsertItemEquip(this.cnConnection, this.dsEquips);
            MaintenanceFurnaceItem.InsertItemPerson(this.cnConnection, this.dsPersons);

            MaintenanceElectricalFurnace frmMfi = (MaintenanceElectricalFurnace)this.Owner;

            frmMfi.GetCurrentMaintenanceShiftAndItems();
            this.Close();
        }
        private void btmOK_Click(object sender, EventArgs e)
        {
            this.mfiUpdate.strEquipTagPty = this.tbTag.Text.Trim();
            this.mfiUpdate.tsDurationPty  = TimeSpan.Parse(this.tbDuration.Text.Trim());
            this.mfiUpdate.strTipPty      = this.tbTip.Text.Trim();
            this.mfiUpdate.tsTimePty      = TimeSpan.Parse(this.tbTime.Text.Trim());
            this.mfiUpdate.Update(this.cnConnection);

            MaintenanceFurnaceItem.DeleteItemEquips(this.cnConnection, this.dsPrimaryEquips);
            MaintenanceFurnaceItem.DeleteItemPerson(this.cnConnection, this.dsPrimaryPersons);
            MaintenanceFurnaceItem.InsertItemEquip(this.cnConnection, this.dsEquips);
            MaintenanceFurnaceItem.InsertItemPerson(this.cnConnection, this.dsPersons);

            MaintenanceElectricalFurnace frmMfi = (MaintenanceElectricalFurnace)this.Owner;

            frmMfi.GetCurrentMaintenanceShiftAndItems();
            this.Close();
        }