protected void Page_Load(object sender, EventArgs e)
 {
     user = null;// new eUser();
     //user.Check();
     Action            = new eAction();
     Action.Actioning += new eActionHandler(Action_Actioning);
     Action.Listen();
 }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     user = new eUser("TestArea");
     //user.URL = "Login.aspx";//用户未登录跳转登录地址,默认为Login.aspx
     action            = new eAction();
     action.Actioning += action_Actioning;
     action.Listen();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     user = new eUser("Manage");
     edt  = new eForm("ProductConfigs", user);
     edt.AddControl(eFormControlGroup);
     Action            = new eAction();
     Action.Actioning += new eActionHandler(Action_Actioning);
     Action.Listen();
 }
Exemple #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            user = new eUser("Manage");
            user.Check();
            Action = new eAction();

            edt = new eForm("a_eke_sysModels", user);
            //edt.AutoRedirect = false;
            edt.AddControl(f1); //名称
            f2.Field = "Code";
            edt.AddControl(f2); //编码
            edt.AddControl(f3); //简介
            edt.AddControl(f4); //文件
            edt.AddControl(f5); //自动
            edt.AddControl(f6); //类名
            f7.Field     = "ParentID";
            f7.FieldType = "uniqueidentifier";
            edt.AddControl(f7); //上级

            edt.AddControl(f8); //关系
            edt.AddControl(f9); //类型
            if (Action.Value == "del")
            {
                string id = eParameters.QueryString("id");
                eOleDB.Execute("delete from a_eke_sysModels where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysModelItems where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysModelConditions where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysModelConditionItems where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysConditions where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysPowers where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysActions where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysModelTabs where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysModelPanels where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysUserCustoms where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysUserColumns where ModelID='" + id + "'");
                eOleDB.Execute("delete from a_eke_sysCheckUps where ModelID='" + id + "'");


                if (Request.ServerVariables["HTTP_REFERER"] == null)
                {
                    Response.Redirect("ClearModel.aspx", true);
                }
                else
                {
                    Response.Redirect(Request.ServerVariables["HTTP_REFERER"].ToString(), true);
                }
                Response.End();
                //Response.Redirect(Request.UrlReferrer.PathAndQuery, true);
            }
            edt.onChange += new eFormTableEventHandler(edt_onChange);
            edt.Handle();


            Action.Actioning += new eActionHandler(Action_Actioning);
            Action.Listen();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            user = new eUser(UserArea);
            user.Check();

            model             = new eModel(ModelID, user);
            Action            = new eAction();
            Action.Actioning += new eActionHandler(Action_Actioning);
            Action.Listen();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            allids = getParentIDS(pid);
            user   = new eUser("System");
            model  = new eModel(ModelID, user);

            Action            = new eAction(user);
            Action.Actioning += new eActionHandler(Action_Actioning);
            Action.Listen();
        }
Exemple #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            user   = new eUser("Manage");
            Action = new eAction();
            eform  = new eForm("a_eke_sysModels", user);
            allids = getParentIDS(id);
            //eBase.Writeln(allids);
            LitMenus.Text = getTree("");

            Action            = new eAction(user);
            Action.Actioning += new eActionHandler(Action_Actioning);
            Action.Listen();
        }
Exemple #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            user = new eUser("Manage");
            edt  = new eForm("a_eke_sysRoles", user);
            //edt.AutoRedirect = false;
            edt.AddControl(eFormControlGroup);
            edt.onChange += new eFormTableEventHandler(edt_onChange);

            Action            = new eAction();
            Action.Actioning += new eActionHandler(Action_Actioning);
            Action.Listen();
            if (act == "add" || act == "edit" || act == "copy")
            {
                eBase.clearDataCache("a_eke_sysPowers");
                LitApps.Text = getApps();
            }
        }
Exemple #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     action            = new eAction();
     action.Actioning += action_Actioning;
     action.Listen();
 }