Beispiel #1
0
        private IEnumerable <T> GetIEList <T>()
        {
            string contract_type = ResquestUtil.GetValue(HttpContext.Request, "contract_type", "");
            string contract_area = ResquestUtil.GetValue(HttpContext.Request, "contract_area", "");
            string contract_id   = ResquestUtil.GetValue(HttpContext.Request, "contract_id", "");
            string contract_yf   = ResquestUtil.GetValue(HttpContext.Request, "contract_yf", "");

            if (!string.IsNullOrEmpty(contract_id))
            {
            }
            return(null);
        }
Beispiel #2
0
        public ActionResult UpdateC_contract()
        {
            string typ = ResquestUtil.GetValue(HttpContext.Request, "type", "");

            switch (typ)
            {
            case "list":

                return(PartialView("listC_contract", GetIEList <合同记录>()));

            default: return(PartialView());
            }
        }
Beispiel #3
0
        public ActionResult EditC_functioninfo(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(PartialView());
            }

            int            cid         = int.Parse(id);
            C_functioninfo funtioninfo = MSSQLManager.GetDmodel().C_functioninfo.FirstOrDefault(c => c.id == cid);

            funtioninfo.fatherid    = int.Parse(ResquestUtil.GetValue(Request, "fatherid", funtioninfo.fatherid.ToString()));
            funtioninfo.displayname = ResquestUtil.GetValue(Request, "displayname");
            funtioninfo.description = ResquestUtil.GetValue(Request, "description");
            funtioninfo.actionname  = ResquestUtil.GetValue(Request, "actionname");
            MSSQLManager.GetDmodel().Entry(funtioninfo).State = EntityState.Modified;
            return(EditAndDel(funtioninfo.displayname));
        }
Beispiel #4
0
        public JavaScriptResult Index(string id)
        {
            if (MSSQLManager.GetDmodel().statisticsUser.FirstOrDefault(c => c.useruid == id) != null)
            {
                HttpRequestBase request = Request;

                statisticsLog statistics = new statisticsLog();
                statistics.useruid = id;
                string ip = "";
                if (request.UserHostAddress != "::1")
                {
                    foreach (string cip in request.UserHostAddress.Split('.'))
                    {
                        ip += cip.PadLeft(3, '0');
                    }
                }
                else
                {
                    ip = "127000000001";
                }
                statistics.ip          = long.Parse(ip);
                statistics.url         = ResquestUtil.GetValue(Request, "sourceurl");
                statistics.title       = ResquestUtil.GetValue(Request, "title");
                statistics.datetime    = DateTime.Now;
                statistics.descprition = request.UserAgent;
                MSSQLManager.GetDmodel().Entry(statistics).State = EntityState.Added;
                MSSQLManager.GetDmodel().SaveChanges();
            }

            StringBuilder docwrite = new StringBuilder();

            docwrite.Append("document.write(\"");
            docwrite.Append("<span >");
            docwrite.Append(" <a target='zg69statictics' href='");
            docwrite.Append(logurl);
            docwrite.Append(id);
            docwrite.Append("' title='网站统计'>");
            docwrite.Append("<img alt='统计' src='http://www.zg69.cn/Images/statictics/statictics.gif' style='object-fit:fill;height:20px;' />");
            docwrite.Append("</ a ></ span >\")");
            return(JavaScript(docwrite.ToString()));
        }
Beispiel #5
0
        public ActionResult GetArea()
        {
            string        parentcode = ResquestUtil.GetValue("parentcode");
            string        selectcode = ResquestUtil.GetValue("selectcode");
            List <Area>   area       = DB.Context.From <Area>().Where(c => c.ParentCode == parentcode).ToList();
            StringBuilder areastr    = new StringBuilder();
            string        format     = "<option value= '{0}' {1} regioncode='{2}'>{0}</option>";

            foreach (var Area in area)
            {
                if (!string.IsNullOrEmpty(selectcode) && Area.RegionCode == selectcode)
                {
                    areastr.AppendFormat(format, Area.RegionName, "selected", Area.RegionCode);
                }
                else
                {
                    areastr.AppendFormat(format, Area.RegionName, "", Area.RegionCode);
                }
            }
            return(Content(areastr.ToString()));
        }