| | |
| | | { |
| | | error = ""; |
| | | bool isOk = true; |
| | | if (string.IsNullOrEmpty(mTextBoxEditR1.Text) || mTextBoxEditR1.Text == "请è¾å
¥") |
| | | if (string.IsNullOrEmpty(mTextBoxEditR1.Text) || mTextBoxEditR1.Text == "请è¾å
¥" || double.Parse(mTextBoxEditR1.Text) == 0) |
| | | { |
| | | isOk = false; |
| | | error = "请è¾å
¥å¿
填项ï¼"; |
| | |
| | | } |
| | | if (RBtnW1.Checked) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditW1.Text) || mTextBoxEditW1.Text == "请è¾å
¥") |
| | | if (string.IsNullOrEmpty(mTextBoxEditW1.Text) || mTextBoxEditW1.Text == "请è¾å
¥" || double.Parse(mTextBoxEditW1.Text) == 0) |
| | | { |
| | | isOk = false; |
| | | error = "请è¾å
¥W1ï¼"; |
| | | mTextBoxEditW1.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelW1.Visible = true; |
| | | } |
| | | if (string.IsNullOrEmpty(mTextBoxEditu.Text) || mTextBoxEditu.Text == "请è¾å
¥") |
| | | if (string.IsNullOrEmpty(mTextBoxEditu.Text) || mTextBoxEditu.Text == "请è¾å
¥" || double.Parse(mTextBoxEditu.Text) == 0) |
| | | { |
| | | isOk = false; |
| | | error = "请è¾å
¥Uï¼"; |
| | |
| | | } |
| | | if (RBtnv1.Checked) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditv1.Text) || mTextBoxEditv1.Text == "请è¾å
¥V1") |
| | | if (string.IsNullOrEmpty(mTextBoxEditv1.Text) || mTextBoxEditv1.Text == "请è¾å
¥V1" || double.Parse(mTextBoxEditv1.Text) == 0) |
| | | { |
| | | isOk = false; |
| | | error = "请è¾å
¥V1ï¼"; |
| | |
| | | } |
| | | if (RBtnv2.Checked) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditv2.Text) || mTextBoxEditv2.Text == "请è¾å
¥V2") |
| | | if (string.IsNullOrEmpty(mTextBoxEditv2.Text) || mTextBoxEditv2.Text == "请è¾å
¥V2" || double.Parse(mTextBoxEditv2.Text) == 0) |
| | | { |
| | | isOk = false; |
| | | error = "请è¾å
¥V2ï¼"; |
| | |
| | | } |
| | | if (RBtnW4.Checked) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditW4.Text) || mTextBoxEditW4.Text == "请è¾å
¥W4") |
| | | if (string.IsNullOrEmpty(mTextBoxEditW4.Text) || mTextBoxEditW4.Text == "请è¾å
¥W4" || double.Parse(mTextBoxEditW4.Text) == 0) |
| | | { |
| | | isOk = false; |
| | | error = "请è¾å
¥W4ï¼"; |
| | |
| | | |
| | | private void mTextBoxEditW1_Leave(object sender, EventArgs e) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditW1.Text) && mTextBoxEditW1.Enabled == true) |
| | | if ((string.IsNullOrEmpty(mTextBoxEditW1.Text) || double.Parse(mTextBoxEditW1.Text) == 0) && mTextBoxEditW1.Enabled == true) |
| | | { |
| | | mTextBoxEditW1.Text = "请è¾å
¥"; |
| | | } |
| | |
| | | |
| | | private void mTextBoxEditu_Leave(object sender, EventArgs e) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditu.Text) && mTextBoxEditu.Enabled == true) |
| | | if ((string.IsNullOrEmpty(mTextBoxEditu.Text) || double.Parse(mTextBoxEditu.Text) == 0) && mTextBoxEditu.Enabled == true) |
| | | { |
| | | mTextBoxEditu.Text = "请è¾å
¥"; |
| | | } |
| | |
| | | |
| | | private void mTextBoxEditv1_Leave(object sender, EventArgs e) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditv1.Text) && mTextBoxEditv1.Enabled == true) |
| | | if ((string.IsNullOrEmpty(mTextBoxEditv1.Text) || double.Parse(mTextBoxEditv1.Text) == 0) && mTextBoxEditv1.Enabled == true) |
| | | { |
| | | mTextBoxEditv1.Text = "请è¾å
¥V1"; |
| | | } |
| | |
| | | |
| | | private void mTextBoxEditv2_Leave(object sender, EventArgs e) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditv2.Text) && mTextBoxEditv2.Enabled == true) |
| | | if ((string.IsNullOrEmpty(mTextBoxEditv2.Text) || double.Parse(mTextBoxEditv2.Text) == 0) && mTextBoxEditv2.Enabled == true) |
| | | { |
| | | mTextBoxEditv2.Text = "请è¾å
¥V2"; |
| | | } |
| | |
| | | |
| | | private void mTextBoxEditW4_Leave(object sender, EventArgs e) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditW4.Text) && mTextBoxEditW4.Enabled == true) |
| | | if ((string.IsNullOrEmpty(mTextBoxEditW4.Text) || double.Parse(mTextBoxEditW4.Text) == 0) && mTextBoxEditW4.Enabled == true) |
| | | { |
| | | mTextBoxEditW4.Text = "请è¾å
¥W4"; |
| | | } |
| | |
| | | |
| | | private void mTextBoxEditR1_Leave(object sender, EventArgs e) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditR1.Text) && mTextBoxEditR1.Enabled == true) |
| | | if ((string.IsNullOrEmpty(mTextBoxEditR1.Text) || double.Parse(mTextBoxEditR1.Text) == 0) && mTextBoxEditR1.Enabled == true) |
| | | { |
| | | mTextBoxEditR1.Text = "请è¾å
¥"; |
| | | } |