示例#1
0
 private void btnRepay_Click(object sender, RoutedEventArgs e)
 {
     if (this.cmbGroup.SelectedItem == null)
     {
         MessageBox.Show("请选择还款账户");
         return;
     }
     else
     {
         if (GroupServiceHelper.ExistsGroup(this.cmbGroup.SelectedItem as string))
         {
             var win   = new winRepay();
             var group = cmbGroup.SelectedItem as string;
             var o     = Cryptor.MD5Decrypt(GroupDict[group]).FromJson <券商>();
             win.Init(o);
             win.ShowDialog();
         }
         else
         {
             MessageBox.Show("缺少组合号接口IP.txt");
         }
     }
 }
示例#2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (this.GroupItem == null)
            {
                MessageBox.Show("初始化异常,请联系管理员");
                return;
            }

            var client = GroupServiceHelper.GetGroupClient(GroupItem.称);

            if (client != null)
            {
                try
                {
                    var s = client.AccountRepay(tbAccount.Text, decimal.Parse(txtAmount.Text.Trim()));
                    MessageBox.Show(s);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }