Beispiel #1
0
        string System.Web.UI.ICallbackEventHandler.GetCallbackResult()
        {
            string         result = "";
            JsonArrayParse jp     = new JsonArrayParse(this._clientArgument);

            return(result);
        }
Beispiel #2
0
        private string getvalueaction(JsonArrayParse jp)
        {
            JsonObjectCollection collection = new JsonObjectCollection();
            string flag    = "1";
            string subtype = "";

            try
            {
                int row = 0;
                Business.Base.BusinessLocation bt = new Business.Base.BusinessLocation();
                foreach (Entity.Base.EntityLocation it in bt.GetListQuery(string.Empty, string.Empty, jp.getValue("parent")))
                {
                    subtype += it.LOCNo + ":" + it.LOCName + ";";
                    row++;
                }

                collection.Add(new JsonNumericValue("row", row));
                collection.Add(new JsonStringValue("subtype", subtype));
                collection.Add(new JsonStringValue("child", jp.getValue("child")));
            }
            catch { flag = "2"; }

            collection.Add(new JsonStringValue("type", "getvalue"));
            collection.Add(new JsonStringValue("flag", flag));

            return(collection.ToString());
        }
Beispiel #3
0
        private string getRMaction(JsonArrayParse jp)
        {
            JsonObjectCollection collection = new JsonObjectCollection();
            string flag = "1";

            Business.Base.BusinessLocation bc = new Business.Base.BusinessLocation();
            bc.load(jp.getValue("RMLOCNo3"));

            string building = "";

            Business.Base.BusinessLocation loc2 = new Business.Base.BusinessLocation();
            foreach (Entity.Base.EntityLocation it in loc2.GetListQuery(string.Empty, string.Empty, bc.Entity.ParentLOCNo))
            {
                if (it.LOCNo == jp.getValue("RMLOCNo3"))
                {
                    building += "<span class=\"btn btn-primary radius\" id=\"" + it.LOCNo + "\">" + it.LOCName + "</span>";
                }
                else
                {
                    building += "<span class=\"btn btn-default radius\" id=\"" + it.LOCNo + "\" onclick=\"getRM('" + it.LOCNo + "')\">" + it.LOCName + "</span>";
                }
            }

            collection.Add(new JsonStringValue("building", building));
            collection.Add(new JsonStringValue("rmlist", getRMList(jp.getValue("RMLOCNo1"), jp.getValue("RMLOCNo2"), jp.getValue("RMLOCNo3"), jp.getValue("RMID"), jp.getValue("CustName"), jp.getValue("RMStatus"))));

            collection.Add(new JsonStringValue("type", "select"));
            collection.Add(new JsonStringValue("flag", flag));
            return(collection.ToString());
        }
Beispiel #4
0
        string System.Web.UI.ICallbackEventHandler.GetCallbackResult()
        {
            string         result = "";
            JsonArrayParse jp     = new JsonArrayParse(this._clientArgument);

            if (jp.getValue("Type") == "getmsg")
            {
                result = getmsgaction(jp);
            }
            return(result);
        }
Beispiel #5
0
        private string getmsgaction(JsonArrayParse jp)
        {
            JsonObjectCollection collection = new JsonObjectCollection();
            string flag   = "1";
            string result = "";;

            try
            {
                Business.Order.BusinessWorkOrderMsg msg = new Business.Order.BusinessWorkOrderMsg();
                int msgnum = msg.GetWorkOrderMsgCount(user.Entity.AccID, string.Empty, default(DateTime), default(DateTime), user.Entity.UserNo, false, string.Empty, false);

                collection.Add(new JsonStringValue("msgnum", msgnum.ToString()));
            }
            catch
            { flag = "2"; }

            collection.Add(new JsonStringValue("type", "getmsg"));
            collection.Add(new JsonStringValue("flag", flag));

            result = collection.ToString();

            return(result);
        }