private void DetachVlu_ChuongTrinhDT(Vlu_ChuongTrinhDT entity)
 {
     entity.Vlu_Khoa = null;
 }
 private bool FilterVlu_ChuongTrinhDT(Vlu_ChuongTrinhDT entity)
 {
     return (entity.KhoaID == this.KhoaID);
 }
 private bool FilterVlu_ChuongTrinhDT(Vlu_ChuongTrinhDT entity)
 {
     return (entity.MonHocID == this.MonHocID);
 }
 private void AttachVlu_ChuongTrinhDT(Vlu_ChuongTrinhDT entity)
 {
     entity.Vlu_Khoa = this;
 }
 private void AttachVlu_ChuongTrinhDT(Vlu_ChuongTrinhDT entity)
 {
     entity.Vlu_MonHoc = this;
 }
 private void DetachVlu_ChuongTrinhDT(Vlu_ChuongTrinhDT entity)
 {
     entity.Vlu_MonHoc = null;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Vlu_ChuongTrinhDT EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToVlu_ChuongTrinhDT(Vlu_ChuongTrinhDT vlu_ChuongTrinhDT)
 {
     base.AddObject("Vlu_ChuongTrinhDT", vlu_ChuongTrinhDT);
 }
 /// <summary>
 /// Create a new Vlu_ChuongTrinhDT object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="khoaID">Initial value of the KhoaID property.</param>
 /// <param name="lopID">Initial value of the LopID property.</param>
 /// <param name="monHocID">Initial value of the MonHocID property.</param>
 /// <param name="namHoc">Initial value of the NamHoc property.</param>
 /// <param name="hocKy">Initial value of the HocKy property.</param>
 /// <param name="ngayTao">Initial value of the NgayTao property.</param>
 /// <param name="nguoiTao">Initial value of the NguoiTao property.</param>
 public static Vlu_ChuongTrinhDT CreateVlu_ChuongTrinhDT(global::System.Int32 id, global::System.Int32 khoaID, global::System.Int32 lopID, global::System.Int32 monHocID, global::System.Int32 namHoc, global::System.Int32 hocKy, global::System.DateTime ngayTao, global::System.String nguoiTao)
 {
     Vlu_ChuongTrinhDT vlu_ChuongTrinhDT = new Vlu_ChuongTrinhDT();
     vlu_ChuongTrinhDT.ID = id;
     vlu_ChuongTrinhDT.KhoaID = khoaID;
     vlu_ChuongTrinhDT.LopID = lopID;
     vlu_ChuongTrinhDT.MonHocID = monHocID;
     vlu_ChuongTrinhDT.NamHoc = namHoc;
     vlu_ChuongTrinhDT.HocKy = hocKy;
     vlu_ChuongTrinhDT.NgayTao = ngayTao;
     vlu_ChuongTrinhDT.NguoiTao = nguoiTao;
     return vlu_ChuongTrinhDT;
 }
Exemple #9
0
 public void DeleteTrainingAsync(Vlu_ChuongTrinhDT obj)
 {
     Model.Vlu_ChuongTrinhDTs.Remove(obj);
     PerformSubmitChanged(DeleteTrainingComplete);
 }
Exemple #10
0
 public void SaveTrainingAsync(Vlu_ChuongTrinhDT obj)
 {
     if (obj.ID == -1)
         Model.Vlu_ChuongTrinhDTs.Add(obj);
     PerformSubmitChanged(SaveTrainingComplete);
 }
Exemple #11
0
 public void GetTrainingAsync(int id)
 {
     if (id == -1)
     {
         Vlu_ChuongTrinhDT obj = new Vlu_ChuongTrinhDT();
         obj.ID = id;
         obj.NamHoc = DateTime.Now.Year;
         obj.HocKy = 1;
         obj.KhoaID = -1;
         obj.LopID = -1;
         obj.MonHocID = -1;
         obj.NgayTao = DateTime.Now;
         obj.NguoiTao = SystemConfig.UserName;
         List<Vlu_ChuongTrinhDT> lst = new List<Vlu_ChuongTrinhDT>();
         lst.Add(obj);
         GetTrainingComplete(this, new EntityResultsArgs<Vlu_ChuongTrinhDT>(lst.ToArray()));
     }
     else
     {
         var query = from c in Model.GetVlu_MonHocQuery()
                     where c.MonHocID == id
                     select c;
         PerformQuery(query, GetSubjectComplete, false);
     }
 }