示例#1
0
        private void bkjetextBox_TextChanged(object sender, EventArgs e)
        {
            string name = hyflcomboBox.Text.Trim();
            double bl   = bll.selectBL(name);

            if (bkjetextBox.Text != "")
            {
                czjetextBox.Text = (Convert.ToDouble(bkjetextBox.Text) * bl).ToString();
            }
        }
示例#2
0
        private void ExitCard_Load(object sender, EventArgs e)
        {
            double bl = cardtype.selectBL(zhanshimolde.memberType.Trim());

            textBox1.Text = zhanshimolde.memberName;
            textBox2.Text = zhanshimolde.memberCardNo;
            textBox3.Text = zhanshimolde.cardMoney;
            textBox4.Text = zhanshimolde.toUpMoney;
            textBox5.Text = zhanshimolde.cardType;
            textBox6.Text = zhanshimolde.memberType;
            textBox7.Text = (Convert.ToDouble(zhanshimolde.toUpMoney.Trim()) / bl).ToString().Split(new char[] { '.' }, StringSplitOptions.RemoveEmptyEntries)[0];
        }
示例#3
0
文件: hyczck.cs 项目: wryip/diyiban
        private void hyczck_Load(object sender, EventArgs e)
        {
            if (model1.cardType.Trim() == "计次卡")
            {
                label2.Text = "剩余次数";
                label3.Text = "充值次数";
            }
            textBox1.Text = model1.memberName;
            textBox2.Text = model1.toUpMoney;
            //textBox3.Text = model1.cardMoney;
            textBox4.Text = model1.memberCardNo;
            textBox5.Text = model1.fuwuBate;

            textBox7.Text  = model1.memberTel;
            textBox8.Text  = model1.rebate;
            textBox9.Text  = model1.cardType;
            textBox10.Text = model1.cardDate;
            textBox11.Text = model1.remark;
            textBox12.Text = model1.memberType;
            textBox6.Text  = model1.cardMoney;
            //comboBox1.Text = model1.saleMan;
            //去拿相应卡的充值比例
            string cardtype = textBox12.Text.Trim();

            InfoBL        = typebll.selectBL(cardtype);
            textBox3.Text = (Convert.ToDouble(textBox6.Text.Trim() == "" ? "1" : textBox6.Text) * InfoBL).ToString();
            dataBind();
            List <jbcs> listname = staffbll.selectSH();

            foreach (var iteam in listname)
            {
                comboBox1.Items.Add(iteam.AllType);
            }
            if (comboBox1.Items.Count > 0)
            {
                comboBox1.SelectedIndex = 0;
            }
        }