private void dg_CellClick(object sender, DataGridViewCellEventArgs e) { if (dg.DataSource != null && e.RowIndex >= 0) { DataSet1.T_OCRX_VESSELRow row = (DataSet1.T_OCRX_VESSELRow)((DataRowView)dg.CurrentRow.DataBoundItem).Row; cbbCompanyCode.Text = row.COMPANYCODE; cbbService.Text = row.SERVICECODE; txtLine.Text = row.LINECODE; cbbCompanyCode.Enabled = false; cbbService.Enabled = false; } }
/// <summary> /// 删除班轮分发规则 /// </summary> /// <param name="row"></param> public static void DeleteVessel(DataSet1.T_OCRX_VESSELRow row) { OCRDbContext.Runner.ExecuteObjectTypedParams(Config.ConnectionString, "OCR.pkg_ocrx.p_delete_vessel", CommandType.StoredProcedure, row); }
/// <summary> /// 修改班轮分发规则 /// </summary> /// <param name="row"></param> public static void UpdateVessel(DataSet1.T_OCRX_VESSELRow row) { SqlHelper.Oracle.ExecuteObjectTypedParams(Config.ConnectionString, "OCR.pkg_ocrx.p_update_vessel", CommandType.StoredProcedure, row); }