private void FrmInputs_Load(object sender, EventArgs e)
        {
            foreach (Control label in this.Controls)
            {
                if (label.GetType().ToString() == "System.Windows.Forms.Label")
                {
                    label.Font = UI_FontUtil.SetControlFont();
                }
            }
            txtCustoNo.Text = CustoManager.GetRandomCustoNo();

            #region 加载客户类型信息
            List <CustoType> lstSourceGrid = CustoTypeManager.SelectCustoTypesAll();
            this.cbCustoType.DataSource    = lstSourceGrid;
            this.cbCustoType.DisplayMember = "TypeName";
            this.cbCustoType.ValueMember   = "UserType";
            this.cbCustoType.SelectedIndex = 0;
            this.cbCustoType.ReadOnly      = true;
            #endregion

            #region 加载证件类型信息
            List <PassPortType> passPorts = CustoTypeManager.SelectPassPortTypeAll();
            this.cbPassportType.DataSource    = passPorts;
            this.cbPassportType.DisplayMember = "PassportName";
            this.cbPassportType.ValueMember   = "PassportId";
            this.cbPassportType.SelectedIndex = 0;
        private void picGetCustoNo_Click(object sender, EventArgs e)
        {
            string cardId = CustoManager.GetRandomCustoNo();

            txtCustoNo.Text = cardId;
            picGetCustoNo.BackgroundImage = Resources.获取用户编号_ia;
        }
Exemple #3
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            string cardId = CustoManager.GetRandomCustoNo();

            txtCustoNo.Text   = cardId;
            txtCustoName.Text = dataGridView1.SelectedRows[0].Cells["clCustoName"].Value.ToString();
            txtTel.Text       = dataGridView1.SelectedRows[0].Cells["clCustoTel"].Value.ToString();
        }
        private void picGetCustoNo_Click(object sender, EventArgs e)
        {
            string cardId = CustoManager.GetRandomCustoNo();

            txtCustoNo.Text = cardId;
        }