private void dgCompany_CellClick(object sender, DataGridViewCellEventArgs e) { if (dgCompany.DataSource != null && e.RowIndex >= 0) { DataSet1.T_OCRX_CORow row = (DataSet1.T_OCRX_CORow)((DataRowView)dgCompany.CurrentRow.DataBoundItem).Row; txtCompanyCode.Text = row.COMPANYCODE; txtCompanyName.Text = row.COMPANYNAME; } }
private void SetCompany() { try { DataSet1.T_OCRX_CORow row = UsersBLL.SelectCompany(CompanyCode); lblCompany.Text = row.COMPANYNAME; } catch (Exception ex) { //MessageBox.Show(ex.Message); } finally { //this.Cursor = Cursors.Default; } }
/// <summary> /// 删除外理公司 /// </summary> /// <param name="row"></param> public static void DeleteCompany(DataSet1.T_OCRX_CORow row) { OCRDbContext.Runner.ExecuteObjectTypedParams(Config.ConnectionString, "OCR.pkg_ocrx.p_delete_company", CommandType.StoredProcedure, row); }
/// <summary> /// 新增外理公司 /// </summary> /// <param name="row"></param> public static void InsertCompany(DataSet1.T_OCRX_CORow row) { SqlHelper.Oracle.ExecuteObjectTypedParams(Config.ConnectionString, "OCR.pkg_ocrx.p_insert_company", CommandType.StoredProcedure, row); }