Esempio n. 1
0
        public void storeUser_Refresh(object sender, StoreReadDataEventArgs e)
        {
            DataTable    dtU = new DataTable();
            DataTable    dtS = new DataTable();
            AppUserQuery uQ  = new AppUserQuery("a");

            uQ.es2.Connection.Name = "KENCANA";
            ServiceUnitQuery sQ = new ServiceUnitQuery("b");

            sQ.es2.Connection.Name = "KENCANA";
            dtU = uQ.LoadDataTable();
            dtS = sQ.LoadDataTable();

            storeUser.DataSource = dtU;
            storeUser.DataBind();
        }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request.QueryString["isnew"] == null)
         {
             Response.Redirect("~/404.aspx");
         }
         //X.Js.Call("onWinClose");
         if (!X.IsAjaxRequest)
         {
             ServiceUnitQuery sQ = new ServiceUnitQuery("a");
             sQ.SelectAll().Where(sQ.IsActive == true);
             sQ.es2.Connection.Name = "KENCANA";
             storeSU.DataSource     = sQ.LoadDataTable();
             storeSU.DataBind();
         }
     }
 }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                DataTable    dtU = new DataTable();
                DataTable    dtS = new DataTable();
                AppUserQuery uQ  = new AppUserQuery("a");
                uQ.SelectAll();
                uQ.es2.Connection.Name = "KENCANA";
                ServiceUnitQuery sQ = new ServiceUnitQuery("b");
                sQ.SelectAll();
                sQ.es2.Connection.Name = "KENCANA";
                dtU = uQ.LoadDataTable();
                dtS = sQ.LoadDataTable();

                storeServiceUnit.DataSource = dtS;
                storeServiceUnit.DataBind();
                storeUser.DataSource = dtU;
                storeUser.DataBind();

                smGrdServiceUnit.Select(0);
                smGrdServiceUnit.UpdateSelection();
            }
        }