private void Detachchi_tieu_ca_nhan(chi_tieu_ca_nhan entity) { entity.sKPI = null; }
private bool Filterchi_tieu_ca_nhan(chi_tieu_ca_nhan entity) { return (entity.id_kpi == this.ma_kpi); }
private bool Filterchi_tieu_ca_nhan(chi_tieu_ca_nhan entity) { return (entity.id_nv_cs == this.ma_nvcs); }
private void Attachchi_tieu_ca_nhan(chi_tieu_ca_nhan entity) { entity.sKPI = this; }
private void Detachchi_tieu_ca_nhan(chi_tieu_ca_nhan entity) { entity.nhanvien_cs = null; }
private void Attachchi_tieu_ca_nhan(chi_tieu_ca_nhan entity) { entity.nhanvien_cs = this; }
/// <summary> /// Create a new chi_tieu_ca_nhan object. /// </summary> /// <param name="id">Initial value of the id property.</param> public static chi_tieu_ca_nhan Createchi_tieu_ca_nhan(global::System.Decimal id) { chi_tieu_ca_nhan chi_tieu_ca_nhan = new chi_tieu_ca_nhan(); chi_tieu_ca_nhan.id = id; return chi_tieu_ca_nhan; }
/// <summary> /// Deprecated Method for adding a new object to the chi_tieu_ca_nhan EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTochi_tieu_ca_nhan(chi_tieu_ca_nhan chi_tieu_ca_nhan) { base.AddObject("chi_tieu_ca_nhan", chi_tieu_ca_nhan); }
void save() { if (gridControl2.VisibleRowCount > 0) { for (int i = 0; i < gridControl2.VisibleRowCount; i++) { int rowHandle = gridControl2.GetRowHandleByVisibleIndex(i); if (!gridControl1.IsGroupRowHandle(rowHandle)) { string m_id = (string)gridControl2.GetCellValue(rowHandle, ma_kpi1); double m_trongso = gridControl2.GetCellValue(rowHandle, trongso) == null ? 0 : Convert.ToDouble(gridControl2.GetCellValue(rowHandle, trongso)); double m_chitieu = gridControl2.GetCellValue(rowHandle, chitieugiao) == null ? 0 : Convert.ToDouble(gridControl2.GetCellValue(rowHandle, chitieugiao)); chi_tieu_ca_nhan ct = new chi_tieu_ca_nhan { id_kpi = m_id, id_nv_cs = cmbnv.EditValue.ToString().Trim(), thang_nvcs = thang.DateTime.Month.ToString().Trim() + thang.DateTime.Year.ToString().Trim(), tytrong_giao = m_trongso, chitieu_giao = m_chitieu }; db.chi_tieu_ca_nhans.Add(ct); } } db.SubmitChanges(OnSubmitCompleted, true); } }