コード例 #1
0
        public JsonResult SearchValues(int windowNoParent, int mAttributeSetInstanceId, int vadms_AttributeSet_ID, int windowNo, List <KeyNamePair> lst)
        {
            GenralAttributeModel obj = new GenralAttributeModel();

            if (Session["Ctx"] != null)
            {
                var ctx   = Session["ctx"] as Ctx;
                var value = obj.SearchValuesAttribute(windowNoParent, mAttributeSetInstanceId, vadms_AttributeSet_ID, windowNo, lst, ctx);
                return(Json(new { result = value }, JsonRequestBehavior.AllowGet));
            }
            return(Json(new { result = false }, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public JsonResult Load(int mAttributeSetInstanceId, int vadms_AttributeSet_ID, int windowNo)
        {
            GenralAttributeModel obj = new GenralAttributeModel();

            if (Session["Ctx"] != null)
            {
                var ctx   = Session["ctx"] as Ctx;
                var value = obj.LoadInit(mAttributeSetInstanceId, vadms_AttributeSet_ID, windowNo, ctx, Server);
                return(Json(new { result = value }, JsonRequestBehavior.AllowGet));
            }
            return(Json(new { result = false }, JsonRequestBehavior.AllowGet));
        }