Example #1
0
 private void DeleteOrder_callback(int Result, object[] args, string output, PHPRPC_Error error, bool failure)
 {
     if (Result == 0)
     {
         MessageBox.Show("操作失败");
     }
     getOrder();
 }
Example #2
0
 private void Fruit_callback(int Result, object[] args, string output, PHPRPC_Error error, bool failure)
 {
     if (Result == 0)
     {
         MessageBox.Show("添加失败");
     }
     else
     {
         this.DialogResult = DialogResult.OK;
         this.Close();
     }
 }
Example #3
0
 private void login_callback(Boolean result, Object[] args, String output, PHPRPC_Error error, Boolean failure)
 {
     if (failure)
     {
         MessageBox.Show("登录失败!");
     }
     else
     {
         if (result == true)
         {
             this.DialogResult = System.Windows.Forms.DialogResult.OK;
             this.Close();
         }
         else
         {
             MessageBox.Show("登录失败!");
         }
     }
 }
Example #4
0
 private void getOrderItem_callback(Hashtable result, Object[] args, String output, PHPRPC_Error error, Boolean failure)
 {
     if (result == null)
     {
         return;
     }
     foreach (DictionaryEntry aa in result)
     {
         Hashtable line = PHPConvert.ToHashtable(aa.Value);
         dataGridView6.Rows.Insert(0, new object[] { Encoding.UTF8.GetString((byte[])line["id"]),
                                                     Encoding.UTF8.GetString((byte[])line["product"]),
                                                     Encoding.UTF8.GetString((byte[])line["quantity"]),
                                                     Encoding.UTF8.GetString((byte[])line["money"]),
                                                     Encoding.UTF8.GetString((byte[])line["comment"]) });
     }
 }
Example #5
0
 private void getOrder_callback(Hashtable result, Object[] args, String output, PHPRPC_Error error, Boolean failure)
 {
     if (result == null)
     {
         return;
     }
     foreach (DictionaryEntry aa in result)
     {
         Hashtable line = PHPConvert.ToHashtable(aa.Value);
         dataGridView5.Rows.Insert(0, new object[] { Encoding.UTF8.GetString((byte[])line["id"]),
                                                     Encoding.UTF8.GetString((byte[])line["customer"]),
                                                     Encoding.UTF8.GetString((byte[])line["earliest"]),
                                                     Encoding.UTF8.GetString((byte[])line["latest"]),
                                                     Encoding.UTF8.GetString((byte[])line["status"]),
                                                     Encoding.UTF8.GetString((byte[])line["comment"]), });
     }
 }
Example #6
0
 private void updateReceived_callback(int result, Object[] args, String output, PHPRPC_Error error, Boolean failure)
 {
     if (result > 0)
     {
         MessageBox.Show("修改成功");
         SysPublic.getInstance().getService().GetPrizer(pageForPrize, getPrizeOfUser_callback);
     }
 }
Example #7
0
 private void getPrizeOfUser_callback(Hashtable result, Object[] args, String output, PHPRPC_Error error, Boolean failure)
 {
     if (result.Count == 0)
     {
         if (pageForPrize > 1)
         {
             pageForPrize--;
         }
         return;
     }
     dataGridView4.Rows.Clear();
     foreach (DictionaryEntry aa in result)
     {
         Hashtable line = PHPConvert.ToHashtable(aa.Value);
         dataGridView4.Rows.Insert(0, new object[] { Encoding.UTF8.GetString((byte[])line["id"]),
                                                     line["phone"] == null ? "": Encoding.UTF8.GetString((byte[])line["phone"]),
                                                     Encoding.UTF8.GetString((byte[])line["content"]),
                                                     Encoding.UTF8.GetString((byte[])line["prizeName"]),
                                                     Encoding.UTF8.GetString((byte[])line["received"]),
                                                     String.Format("{0}", Util.UTCToDateTime(Convert.ToInt32(Encoding.UTF8.GetString((byte[])line["ctime"])))) });
     }
 }
 private void getOrder_callback(Hashtable result, Object[] args, String output, PHPRPC_Error error, Boolean failure)
 {
     if (result == null)
     {
         return;
     }
     foreach (DictionaryEntry order in result)
     {
         Hashtable    line = PHPConvert.ToHashtable(order.Value);
         OrderControl oc   = new OrderControl(line);
         oc.Dock = DockStyle.Top;
         list.Controls.Add(oc);
     }
 }
Example #9
0
 private void getFruitPrice_callback(Hashtable result, Object[] args, String output, PHPRPC_Error error, Boolean failure)
 {
     foreach (DictionaryEntry aa in result)
     {
         Hashtable line = PHPConvert.ToHashtable(aa.Value);
         dataGridView3.Rows.Insert(0, new object[] { Encoding.UTF8.GetString((byte[])line["id"]),
                                                     Encoding.UTF8.GetString((byte[])line["minPrice"]),
                                                     Encoding.UTF8.GetString((byte[])line["maxPrice"]),
                                                     Encoding.UTF8.GetString((byte[])line["cdate"]) });
     }
 }
Example #10
0
 private void getFruit_callback(Hashtable result, Object[] args, String output, PHPRPC_Error error, Boolean failure)
 {
     foreach (DictionaryEntry aa in result)
     {
         Hashtable line = PHPConvert.ToHashtable(aa.Value);
         dataGridView2.Rows.Insert(0, new object[] { Encoding.UTF8.GetString((byte[])line["id"]),
                                                     Encoding.UTF8.GetString((byte[])line["name"]),
                                                     Encoding.UTF8.GetString((byte[])line["level"]),
                                                     Encoding.UTF8.GetString((byte[])line["area"]),
                                                     Encoding.UTF8.GetString((byte[])line["unit"]),
                                                     Encoding.UTF8.GetString((byte[])line["description"]),
                                                     Encoding.UTF8.GetString((byte[])line["loss"]) });
     }
 }