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]);
            }
        }
Ejemplo n.º 2
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");
            }
        }
Ejemplo n.º 3
0
        public static MySiteMapProvider BuildMenu(iSabaya.Context context, IList <DynamicMenu> menus)
        {
            MySiteMapProvider provider = new MySiteMapProvider(menus);

            return(provider);
        }
Ejemplo n.º 4
0
 public VOHelperF020100(iSabaya.Context context)
 {
     this.context = context;
 }
Ejemplo n.º 5
0
 public VOPersonControl(Person person, iSabaya.Context context)
 {
     this.person  = person;
     this.context = context;
 }