Пример #1
0
 public CT(MeterType CTMeterType, bool CTIsLadder, JieSuanType CTJieSuanType, int CTLadderNum)
 {
     this.CTMeterType   = CTMeterType;
     this.CTIsLadder    = CTIsLadder;
     this.CTJieSuanType = CTJieSuanType;
     this.CTLadderNum   = CTLadderNum;
 }
Пример #2
0
        private void btn_A010_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.txt_price1.Text) ||
                string.IsNullOrEmpty(this.txt_price2.Text) ||
                string.IsNullOrEmpty(this.txt_price3.Text) ||
                string.IsNullOrEmpty(this.txt_price4.Text) ||
                string.IsNullOrEmpty(this.txt_price5.Text) ||
                string.IsNullOrEmpty(this.txt_gas1.Text) ||
                string.IsNullOrEmpty(this.txt_gas2.Text) ||
                string.IsNullOrEmpty(this.txt_gas3.Text) ||
                string.IsNullOrEmpty(this.txt_gas4.Text) ||
                string.IsNullOrEmpty(this.txt_startDate.Text)

                )
            {
                MessageBox.Show("价格参数不能为空"); return;
            }



            MeterType type = (MeterType)Convert.ToInt32(this.combox_meterType.SelectedValue);

            JieSuanType jiesuanType = (JieSuanType)Convert.ToInt32(this.combox_price_zq.SelectedValue);

            int priceNum = Convert.ToInt32(this.combox_priceNum.SelectedValue);

            CT ct = new CT(type, this.checkBox_isladder.Checked, jiesuanType, priceNum);


            decimal price1 = decimal.Parse(this.txt_price1.Text);
            decimal price2 = decimal.Parse(this.txt_price2.Text);
            decimal price3 = decimal.Parse(this.txt_price3.Text);
            decimal price4 = decimal.Parse(this.txt_price4.Text);
            decimal price5 = decimal.Parse(this.txt_price5.Text);


            int gas1 = int.Parse(this.txt_gas1.Text);
            int gas2 = int.Parse(this.txt_gas2.Text);
            int gas3 = int.Parse(this.txt_gas3.Text);
            int gas4 = int.Parse(this.txt_gas4.Text);

            int startDate = int.Parse(this.txt_startDate.Text);


            //DataItem item = new DataItem_A010(ct, price1, gas1, price2, gas2, price3, gas3, price4, gas4, price5, startDate);



            //WriteDataCmdSend(item);
        }