void btInvoikeCheck() { if (txtNamePack.Text.Trim() == "" || txtPT.Text.Trim() == "") { MessageBox.Show("Please choose your Package", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); } else if (!IsNumber(txtPhone.Text) || !IsNumber(txtIDCard.Text)) { MessageBox.Show("Please Insert Numberic!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error); } else if (verif() == true) { MessageBox.Show("Please Insert More Infomation!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { MessageBox.Show("Complete"); CreateContract(); GETContract.ISRENEW = "new"; User_Control.ReceiptUC receiptUC = new User_Control.ReceiptUC() { Width = 1912, Height = 905 }; this.tabNewMember.Controls.Add(receiptUC); receiptUC.BringToFront(); } }
private void btToInvoiceCommon_Click(object sender, EventArgs e) { try { MemoryStream picture = new MemoryStream(); picAvatarCommon.Image.Save(picture, picAvatarCommon.Image.RawFormat); } catch (Exception Ex) { MessageBox.Show("Vui lòng nhập hình ảnh!"); } if (!IsNumber(txtPhoneCommon.Text) || !IsNumber(txtIDCardCommon.Text)) { MessageBox.Show("Please Insert Numberic!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error); } else if (!verifCommon()) { MessageBox.Show("Please fill information", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { getInfoMember(); MessageBox.Show("complete"); User_Control.ReceiptUC receiptUC = new User_Control.ReceiptUC() { Width = 1912, Height = 905 }; this.tabPackage.Controls.Add(receiptUC); receiptUC.BringToFront(); } }
private void btInvoiceRenew_Click(object sender, EventArgs e) { if (GETContract.IDContract == "" || GETMember.IDMember == "") { MessageBox.Show("Please choose a package you want to renew!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { GETContract.listContracts = getListContract; getInfoMember(); MessageBox.Show("complete"); User_Control.ReceiptUC receiptUC = new User_Control.ReceiptUC() { Width = 1912, Height = 905 }; this.tabRenew.Controls.Add(receiptUC); receiptUC.BringToFront(); } }
private void btInvoiceNewContract_Click(object sender, EventArgs e) { if (txtIsContract.Text == "" || txtIsMember.Text == "") { MessageBox.Show("Please fill ID member and ID contract", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { GETContract.IDContract = txtIsContract.Text; GETContract.listContracts = getListContract; getInfoMember(); MessageBox.Show("complete"); User_Control.ReceiptUC receiptUC = new User_Control.ReceiptUC() { Width = 1912, Height = 905 }; this.tabRenew.Controls.Add(receiptUC); receiptUC.BringToFront(); } }