/// <summary> /// them moi hoac sua lai cai dat /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripStatus_Them_Click(object sender, EventArgs e) { try { if (!Common.Utilities.User.Administrator && !CheckQuyen(this.Name, 4)) { return; } if (cbxMaKho.SelectedValue != null) { Common.Utilities pro = new Common.Utilities(); Entities.TruyenGiaTri tra = pro.CaiDatKho("XuLy", cbxMaKho.SelectedValue.ToString(), cbxMaKho.Text.ToString()); this.Close(); } else { Common.Utilities pro = new Common.Utilities(); Entities.TruyenGiaTri tra = pro.CaiDatKho("XuLy", "NULL", "NULL"); this.Close(); } } catch (Exception ex) { string s = ex.Message.ToString(); } }
/// <summary> /// lay gia tri kho dc cai dat /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripStatusLabel1_Click(object sender, EventArgs e) { try { if (!Common.Utilities.User.Administrator && !CheckQuyen(this.Name, 1)) { return; } Common.Utilities pro = new Common.Utilities(); Entities.TruyenGiaTri tra = pro.CaiDatKho("View", "", ""); if (tra != null) { MessageBox.Show("Đang cài đặt với tên kho: " + tra.Giatrithuhai + "(" + tra.Giatritruyen + ")"); } else { } } catch (Exception ex) { string s = ex.Message.ToString(); } }
/// <summary> /// lay gia tri kho dc cai dat /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripStatusLabel1_Click(object sender, EventArgs e) { try { if (!Common.Utilities.User.Administrator && !CheckQuyen(this.Name, 1)) { return; } Common.Utilities pro = new Common.Utilities(); Entities.TruyenGiaTri tra = pro.CaiDatKho("View","",""); if (tra != null) { MessageBox.Show("Đang cài đặt với tên kho: " + tra.Giatrithuhai + "(" + tra.Giatritruyen + ")"); } else { } } catch (Exception ex) { string s = ex.Message.ToString(); } }