示例#1
0
        /// <summary>
        /// 将窗口输入框内容填入货物对象
        /// </summary>
        /// <param name="hw"></param>
        private void createHW(HW hw)
        {
            int    number = int.Parse(textBox_HW_NUMBER.Text);
            double price  = double.Parse(textBox_HW_PRICE.Text);

            //hw.setHW_NAME(textBox_HW_NAME.Text);
            //hw.setHW_CODE(textBox_HW_CODE.Text);
            hw.setHW_NUMBER(number);
            hw.setHW_PRICE(price);
            hw.setHW_TOTALPRICE(price * number);
            hw.setCOMMENT(textBox_HW_COMMENT.Text);
        }