Exemplo n.º 1
0
        public IEnumerable <PageInit> GET(string UserID, string BookID)
        {
            BaseManagement management = new BaseManagement();

            string where = "UserID='" + UserID + "' and BookID=" + BookID + " and AspxName='Teaching'";
            IList <PageInit> page = management.Search <PageInit>(where);

            return(page);
        }
Exemplo n.º 2
0
        public ApiMessage SearchDirectChargeTaocans()
        {
            this.IniRequest();
            ApiMessage             message = new ApiMessage();
            BaseManagement         baseMgt = new BaseManagement(0);
            List <BResourceTaocan> tcs     = baseMgt.SearchResourceTaocans(request["sp"], request["province"]);

            message.Status = "OK";
            message.Item   = tcs;
            return(message);
        }
Exemplo n.º 3
0
        public ActionResult Index()
        {
            BaseManagement baseMgr = new BaseManagement(User.Identity.GetUserId <int>());

            if (baseMgr.CurrentLoginUser.IsAdmin)
            {
                return(Redirect("/Admin/Index"));
            }
            else
            {
                return(Redirect("/Agent/Index"));
            }
        }
Exemplo n.º 4
0
        public ApiMessage SearchDirectChargeTaocans()
        {
            this.IniRequest();
            ApiMessage     message = new ApiMessage();
            BaseManagement baseMgt = new BaseManagement(0);

            if (request["scope"] == null || (request["scope"].ToLower() != "global" && request["scope"].ToLower() != "local"))
            {
                message.Status  = "ERROR";
                message.Message = "scope must be global or local and in lower case.";
                return(message);
            }
            if (request["sp"] == null || string.IsNullOrEmpty(request["sp"]))
            {
                message.Status  = "ERROR";
                message.Message = "Unknow mobile phone sp name";
                return(message);
            }
            if (request["province"] == null || string.IsNullOrEmpty(request["province"]))
            {
                message.Status  = "ERROR";
                message.Message = "Unknow mobile phone province name";
                return(message);
            }
            BitScope scope = BitScope.Global;

            if (request["scope"].Trim().ToLower() == "local")
            {
                scope = BitScope.Local;
            }
            List <BResourceTaocan> tcs = baseMgt.SearchResourceTaocans(request["sp"], request["province"], scope);

            message.Status = "OK";
            message.Item   = tcs;
            return(message);
        }
 public MenuitemManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public RolepermissionManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public ProcurementcontractdetailManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public LbfgsManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public AssetmaintainManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public AssetscrappedManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public UsermaproleinfoManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public AssetremoveplanManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public CoderuleManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public SubcompanyinfoManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public AssetremovedetailManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public HcontractdetailManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public AssetrunplanManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public VstorageaddressManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
Exemplo n.º 19
0
 public TuserManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public ProcurementscheduleheadManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public AssetsetupinfoManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public BaccountManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public AssetmoveManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public AssetsetupdetailManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public RoleinfoManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public ProcurementscheduledetailManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }
 public AssetconfigManagement(BaseManagement baseManagement)
     : base(baseManagement)
 {
 }