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