|
@ -10,31 +10,46 @@ namespace Stone.WinModule.Standard |
|
|
{ |
|
|
{ |
|
|
public partial class frmMessageQuestion : Form |
|
|
public partial class frmMessageQuestion : Form |
|
|
{ |
|
|
{ |
|
|
|
|
|
private int BillType = 0; |
|
|
public frmMessageQuestion() |
|
|
public frmMessageQuestion() |
|
|
{ |
|
|
{ |
|
|
InitializeComponent(); |
|
|
InitializeComponent(); |
|
|
} |
|
|
} |
|
|
|
|
|
public frmMessageQuestion(int billType) |
|
|
|
|
|
{ |
|
|
|
|
|
InitializeComponent(); |
|
|
|
|
|
BillType = billType; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public DialogResult ShowQuestion(string msg) |
|
|
public DialogResult ShowQuestion(string msg) |
|
|
{ |
|
|
{ |
|
|
this.lblMessage.Text = msg; |
|
|
this.lblMessage.Text = msg; |
|
|
|
|
|
this.DialogResult = DialogResult.None; |
|
|
return this.ShowDialog(); |
|
|
return this.ShowDialog(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void btnOK_Click(object sender, EventArgs e) |
|
|
private void btnOK_Click(object sender, EventArgs e) |
|
|
{ |
|
|
{ |
|
|
frmPasswordVerify frm = new frmPasswordVerify(); |
|
|
if (BillType == 0) |
|
|
frm.UserName = User.UserInfo.UserName; |
|
|
{ |
|
|
if (frm.ShowDialog() == DialogResult.OK) |
|
|
frmPasswordVerify frm = new frmPasswordVerify(); |
|
|
|
|
|
frm.UserName = User.UserInfo.UserName; |
|
|
|
|
|
if (frm.ShowDialog() == DialogResult.OK) |
|
|
|
|
|
{ |
|
|
|
|
|
this.DialogResult = DialogResult.OK; |
|
|
|
|
|
this.Close(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
{ |
|
|
{ |
|
|
this.DialogResult = DialogResult.OK; |
|
|
this.DialogResult = DialogResult.OK; |
|
|
this.Close(); |
|
|
this.Close(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void btnCancel_Click(object sender, EventArgs e) |
|
|
private void btnCancel_Click(object sender, EventArgs e) |
|
|
{ |
|
|
{ |
|
|
|
|
|
DialogResult = DialogResult.No; |
|
|
this.Close(); |
|
|
this.Close(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|