예제 #1
0
        public void AppendPostData(Object formData, String name, String value)
        {
            LuaObjectStore los = (LuaObjectStore)formData;
            Dictionary <String, Object> partList = (Dictionary <String, Object>)los.obj;

            partList.Add("nuname", name);
        }
예제 #2
0
        public LuaObjectStore Insert(LuaObjectStore conn, String str)
        {
            LuaObjectStore los = new LuaObjectStore();

            los.obj = db.Query(str, true);
            return(los);
        }
예제 #3
0
        public LuaObjectStore Query(LuaObjectStore conn, String str)
        {
            LuaObjectStore los = new LuaObjectStore();

            los.obj = db.Query(str, false);
            return(los);
        }
예제 #4
0
        public LuaObjectStore StartForm()
        {
            LuaObjectStore los = new LuaObjectStore();
            Dictionary <String, Object> partList = new Dictionary <String, Object>();

            los.obj = partList;
            return(los);
        }
예제 #5
0
        public void StartAsyncLoadForm(String url, Object formData, String tag)
        {
            LuaObjectStore los = (LuaObjectStore)formData;
            Dictionary <String, Object> partList = (Dictionary <String, Object>)los.obj;

            httpClient = LuaEngine.Instance.GetHttpClient(this.tag, url);
            PostSubmitter ps = new PostSubmitter(httpClient, onComplete, onFail);

            ps.Submit(contentType);
        }
예제 #6
0
        public void AppendFileData(Object formData, String name, Object file)
        {
            LuaObjectStore los = (LuaObjectStore)formData;
            Dictionary <String, Object> partList = (Dictionary <String, Object>)los.obj;

            /*ByteArrayOutputStream bos = new ByteArrayOutputStream();
             * file.compress(CompressFormat.JPEG, 75, bos);
             * byte[] data = bos.toByteArray();*/
            byte[] data = (byte[])file;
            partList.Add("image" + DateTime.Now.Ticks + ".jpg", data);
        }
예제 #7
0
        public void Finalize(LuaObjectStore stmt)
        {
            SQLiteDataReader c = (SQLiteDataReader)stmt.obj;

            c.Close();
        }
예제 #8
0
 public Int64 GetLong(LuaObjectStore stmt, Int32 column)
 {
     return(db.GetLong((SQLiteDataReader)stmt.obj, column));
 }
예제 #9
0
 public Double GetDouble(LuaObjectStore stmt, Int32 column)
 {
     return(db.GetDouble((SQLiteDataReader)stmt.obj, column));
 }
예제 #10
0
 public Single GetFloat(LuaObjectStore stmt, Int32 column)
 {
     return((Single)db.GetDouble((SQLiteDataReader)stmt.obj, column));
 }
예제 #11
0
 public void Close(LuaObjectStore conn)
 {
     db.Close();
 }