예제 #1
0
        public void EquipborrowManage(HttpContext context)
        {
            int    BorrowYN = Convert.ToInt32(context.Request["BorrowYN"]);
            string EQtype   = context.Request["EQtype"];
            string name     = context.Request["name"];
            int    index    = Convert.ToInt32(context.Request["index"]);

            if (EQtype != "")
            {
                Byte ByEQtype = Convert.ToByte(EQtype);
            }


            string callback = context.Request["jsoncallback"];

            EmsBLL.EquipborrowManage EquipborrowManage = new EmsBLL.EquipborrowManage();
            DataTable dt = EquipborrowManage.SelectRepairDetails(BorrowYN, EQtype, name, index);

            List <EmsModel.View_EquipDatail> list = new EmsBLL.EquipborrowManage().GetList(dt);

            JavaScriptSerializer jss = new JavaScriptSerializer();

            jss.MaxJsonLength = Int32.MaxValue;
            context.Response.Write(callback + "({\"result\":" + jss.Serialize(list) + "})");
            context.Response.End();
        }
예제 #2
0
        public void SetEquipDatailBC(HttpContext context)
        {
            string callback   = context.Request["jsoncallback"];
            string YSelectStr = context.Request["YSelectStr"];
            string DSelectStr = context.Request["DSelectStr"];

            List <object> lists = new List <object>();
            string        str   = new EmsBLL.EquipborrowManage().setEquipDetail(YSelectStr, DSelectStr);
            var           obj   = new { name = "str", value = str };

            lists.Add(obj);


            JavaScriptSerializer jss = new JavaScriptSerializer();

            context.Response.Write(callback + "({\"result\":" + jss.Serialize(lists) + "})");
            context.Response.End();
        }