private Cheque FindByChequeNo(iSabaya.Context context, String chequeNo) { ICriteria crit = context.PersistencySession.CreateCriteria(typeof(Cheque)); crit.Add(Expression.Eq("ChequeNo", chequeNo)); crit.Add(Expression.IsNotNull("ChequeNo")); if (crit.List <Cheque>().Count == 0) { return(null); } else { return(crit.List <Cheque>()[0]); } }
public static void CheckUserReferURL(iSabaya.Context context, HttpSessionState session, HttpApplicationState application, HttpRequest request, HttpResponse response, Uri referURL) { //if (referURL == null) // FormsAuthentication.RedirectToLoginPage(); if (referURL == null) { //FormsAuthentication.RedirectToLoginPage(); HttpCookie aspNet = new HttpCookie("ASP.NET_SessionId"); aspNet.Expires = DateTime.Now.AddDays(-1d); response.Cookies.Add(aspNet); HttpCookie formDefault = new HttpCookie("formDefault"); formDefault.Expires = DateTime.Now.AddDays(-1d); response.Cookies.Add(formDefault); response.Redirect("~/login.aspx"); } }
public static MySiteMapProvider BuildMenu(iSabaya.Context context, IList <DynamicMenu> menus) { MySiteMapProvider provider = new MySiteMapProvider(menus); return(provider); }
public VOHelperF020100(iSabaya.Context context) { this.context = context; }
public VOPersonControl(Person person, iSabaya.Context context) { this.person = person; this.context = context; }