Esempio n. 1
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            if (formHelper.inputCheck(groupBox1))
            {
                basicInfoObj         = new basicInfo();
                basicInfoObj.address = this.txt_address.Text.Trim();
                //basicInfoObj.asphaltumError = long.Parse(this.txt_asphaltumError.Text.Trim());
                basicInfoObj.dasherName     = this.txt_dasherName.Text.Trim();
                basicInfoObj.enterpriseKind = this.txt_enterpriseKind.Text.Trim();
                basicInfoObj.fax            = this.txt_fax.Text.Trim();
                basicInfoObj.inputMan       = this.UserName;
                //basicInfoObj.maxHydrousImpurityRate = decimal.Parse(this.txt_maxHydrousImpurityRate.Text.Trim());
                basicInfoObj.phone         = this.txt_phone.Text.Trim();
                basicInfoObj.postNo        = this.txt_postNo.Text.Trim();
                basicInfoObj.systemUseTime = dtp_system.Value;
                basicInfoObj.updateMan     = this.UserName;
                basicInfoObj.updateDate    = DateTime.Now;
                basicInfoObj.piId          = long.Parse(cbx_piId.SelectedValue.ToString());

                basicInfoAct.UpdateOrInsert(basicInfoObj);

                MessageBox.Show("参数修改成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }