Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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);
 }