Exemplo n.º 1
0
        /// <summary>
        /// 自动填入客户信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void button3_Click(object sender, EventArgs e)
        {
            try
            {
                args = await Task.Run(() => ReadArgs.button_Click());
            }
            catch { }

            a1.Text = args.Name;
            if (args.Gender == "男")
            {
                a2.Checked = true;
            }
            if (args.Gender == "女")
            {
                a3.Checked = true;
            }
            a4.Text  = Convert.ToDateTime(args.Birth).Year.ToString();
            a5.Text  = Convert.ToDateTime(args.Birth).Month.ToString();
            a6.Text  = Convert.ToDateTime(args.Birth).Day.ToString();
            a13.Text = args.IDC;
            a14.Text = args.EthnicName;
            a22.Text = args.Address;
            if (args.ValidDateEnd == "长期")
            {
                a18.Checked = true;
            }
            else
            {
                a15.Text = args.ValidDateEnd.Split('.')[0].ToString();
                a16.Text = args.ValidDateEnd.Split('.')[1].ToString();
                a17.Text = args.ValidDateEnd.Split('.')[2].ToString();
            }
        }
Exemplo n.º 2
0
        private async void button4_Click(object sender, EventArgs e)
        {
            args = await Task.Run(() => ReadArgs.button_Click());

            t5.Text = args.Name;
            t6.Text = "身份证";
            t7.Text = args.IDC;
        }
Exemplo n.º 3
0
        private async void button3_Click(object sender, EventArgs e)
        {
            args = await Task.Run(() => ReadArgs.button_Click());

            t1.Text = args.Name;
            t3.Text = "身份证";
            t4.Text = args.IDC;
            t9.Text = args.Name;
        }
Exemplo n.º 4
0
 private async void button3_Click(object sender, EventArgs e)
 {
     try
     {
         args = await Task.Run(() => ReadArgs.button_Click());
     }
     catch { }
     t1.Text = args.Name;
     t5.Text = args.IDC;
     t8.Text = args.Address;
 }
Exemplo n.º 5
0
 /// <summary>
 /// 自动添加代理人
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private async void button4_Click(object sender, EventArgs e)
 {
     try
     {
         args = await Task.Run(() => ReadArgs.button_Click());
     }
     catch { }
     a25.Text    = args.Name;
     a26.Checked = true;
     a30.Checked = true;
     a33.Text    = args.IDC;
 }
Exemplo n.º 6
0
        private async void button3_Click(object sender, EventArgs e)
        {
            try
            {
                args = await Task.Run(() => ReadArgs.button_Click());

                tjkr.Text     = args.Name;
                tjkrsfzh.Text = args.IDC;
            }
            catch (Exception ex)
            {
                LogisTrac.WriteLog(typeof(借据), ex);
            }
        }