public static DaybookView newDayBook() { DayBookInfo dbook = new DayBookInfo(); DaybookView dv = new DaybookView(dbook); // dv.MdiParent = MainMenuHandler.Form; new DAOs.DaybookDAO(dv.db).insertOnSubmit(dbook); return dv; }
internal static AdvanceDaybook newAdvanceDaybook() { DayBookInfo c = new DayBookInfo(); AdvanceDaybook cv = new AdvanceDaybook(c); cv.MdiParent = MainMenuHandler.Form; new DAOs.DaybookDAO(cv.db).insertOnSubmit(c); return cv; }
public DaybookView(DayBookInfo f) { InitializeComponent(); dibs.Add(f); //chq = new DAOs.ChequesTurnOverDAO(db).selectDayookChequeTurnOver(f.ID); /*if (chq != null) { hadCheque = true; ChequeNum.Text = chq.ChequeID.ToString(); ChequeStatus.Text = chq.Status; }*/ }
internal void deleteDaybook(DayBookInfo fa) { db.DayBookInfos.DeleteOnSubmit(fa); try { db.SubmitChanges(); } catch (Exception e) { Console.WriteLine(e); //Provide for exceptions. } }
internal void insertOnSubmit(DayBookInfo c) { db.DayBookInfos.InsertOnSubmit(c); }
public AdvanceDaybook(DayBookInfo dbf) { InitializeComponent(); dibs.Add(dbf); }