private void btmOK_Click(object sender, EventArgs e) { this.btmOK.Enabled = false; this.sgoUpdate.dtDate = this.dtpDate.Value; this.sgoUpdate.intGroupNumber = int.Parse(this.tbGroupNumber.Text.Trim()); this.sgoUpdate.intNumber = int.Parse(this.tbNumber.Text.Trim()); this.sgoUpdate.Update(this.cnConnection); StoreGetOuts frmStoreGetOuts = (StoreGetOuts)this.Owner; frmStoreGetOuts.SearchRequests(); this.Close(); }
private void btmOK_Click(object sender, EventArgs e) { this.btmOK.Enabled = false; this.sgoInsert.dtDate = this.dtpDate.Value; this.sgoInsert.intGroupNumber = int.Parse(this.tbGroupNumber.Text.Trim()); this.sgoInsert.strRequesterCoID = this.usLogined.strCoID; this.sgoInsert.intDepartment = this.emLogined.intDepartment; this.sgoInsert.intSubDepartment = this.emLogined.intSubDepartment; this.sgoInsert.Insert(this.cnConnection); StoreGetOuts frmStoreGetOuts = (StoreGetOuts)this.Owner; frmStoreGetOuts.SearchRequests(); this.Close(); }