void menuItem1_Click(object sender, EventArgs e) { //throw new Exception("The method or operation is not implemented."); frmCallsAssignUser oFrm = new frmCallsAssignUser(); User oUser = new User(); DataTable dt = oUser.GetActiveUsers(); foreach (DataRow row in dt.Rows) { oFrm.cbUsers.Items.Add(row["User"].ToString()); } oFrm.ShowDialog(); if (oFrm.PressedButton == "Apply" && oFrm.UserSelected.Trim() != "") { CustomerCall oCall = new CustomerCall(this.CompanyID); foreach (Row row in this.table.TableModel.Selections.SelectedItems) { //MessageBox.Show(row.Cells[0].Text); if (oCall.Find(row.Cells[0].Text)) { oCall.FindCall(row.Cells[0].Text); oCall.UserID = oFrm.UserSelected; oCall.Save(); } } frmCallsAssignment_Load(null, null); } }
void genreEditor_EndEdit(object sender, XPTable.Events.CellEditEventArgs e) { CustomerCall oCall = new CustomerCall(this.CompanyID); Row row = this.table.TableModel.Rows[e.Row]; if (oCall.Find(row.Cells[0].Text)) { oCall.FindCall(row.Cells[0].Text); oCall.UserID = ((ComboBoxCellEditor)e.Editor).SelectedItem.ToString(); oCall.Save(); //MessageBox.Show(row.Cells[4].Text); } //throw new Exception("The method or operation is not implemented."); }
private void SaveCalls() { CustomerCall oCall = new CustomerCall(this.CompanyID); foreach (Row row in this.table.TableModel.Rows) { if (oCall.Find(row.Cells[0].Text)) { oCall.FindCall(row.Cells[0].Text); oCall.UserID = row.Cells[4].Text; oCall.Save(); //MessageBox.Show(row.Cells[4].Text); } } }
private void btSave_Click(object sender, EventArgs e) { oCustomer.Save(); this.Close(); }