private void btnSave_Click(object sender, EventArgs e) { if (IsRequired()) { if (fConfirm.SayMessage("SV") == true) { frmCHQDepositPOP f = new frmCHQDepositPOP(); f.ShowDialog(); if (f.gOkCancel == true) { gNotes = f.txtNotes.Text.Trim(); gDepositedOn = Convert.ToDateTime(f.dtpDate.Text); gDepositedBy = f.txtName.Text.Trim(); gBankID = f.gBankID; } long tmpKeyHolder = 0; tmpKeyHolder = RoadToSave(); if (tmpKeyHolder == 0) { GlbData.SayMessage("Save Failed!!!", 0, ""); } else { GlbData.SayMessage("Save Success!!!", 1, ""); this.Close(); } } } }
private void btnSave_Click(object sender, EventArgs e) { if (IsRequired()) { if (fConfirm.SayMessage("SV") == true) { long tmpKeyHolder = 0; tmpKeyHolder = SaveCustomer(); if (tmpKeyHolder == 0) { GlbData.SayMessage("Save Failed!!!", 0, ""); } else { GlbData.SayMessage("Save Success!!!", 1, ""); } } } }
private void btnSave_Click(object sender, EventArgs e) { if (IsRequired()) { if (fConfirm.SayMessage("SV") == true) { tran.SaveSetStockRoom(dgvGrid); GlbData.SayMessage("Save Success!!!", 1, ""); this.Close(); } } }
private void btnSave_Click(object sender, EventArgs e) { if (IsRequired()) { if (fConfirm.SayMessage("SV") == true) { long tmpKeyHolder = 0; tmpKeyHolder = RoadToSave(); if (tmpKeyHolder == 0) { GlbData.SayMessage("Save Failed!!!", 0, ""); } else { GlbData.SayMessage("Save Success!!!", 1, ""); ClearLocal(); txtRefNo.Focus(); } } } }
private void btnSave_Click(object sender, EventArgs e) { if (IsRequired()) { if (fConfirm.SayMessage("SV") == true) { gReturnOn = Convert.ToDateTime(dtpDate.Text); long tmpKeyHolder = 0; tmpKeyHolder = RoadToSave(); if (tmpKeyHolder == 0) { GlbData.SayMessage("Save Failed!!!", 0, ""); } else { GlbData.SayMessage("Save Success!!!", 1, ""); this.Close(); } } } }
private void btnSave_Click(object sender, EventArgs e) { if (IsRequired()) { if (fConfirm.SayMessage("SV") == true) { long tmpKeyHolder = 0; tmpKeyHolder = SaveFreeScheme(); if (tmpKeyHolder == 0) { GlbData.SayMessage("Save Failed!!!", 0, ""); } else { GlbData.SayMessage("Save Success!!!", 1, ""); ClearLocal(); dgvPrice.Rows.Clear(); txtCode.Focus(); } } } }
private void btnSave_Click(object sender, EventArgs e) { if (IsRequired()) { if (fConfirm.SayMessage("SV") == true) { long tmpKeyHolder = 0; tmpKeyHolder = RoadToSave(); if (tmpKeyHolder == 0) { GlbData.SayMessage("Save Failed!!!", 0, ""); } else { GlbData.SayMessage("Save Success!!!", 1, ""); dgvMOP.DataSource = null; dgvBills.DataSource = null; txtRefNo.Text = ""; txtRefNo.Focus(); } } } }
private void CashPayment() { frmIPCash f = new frmIPCash(); f.txtGrossTotal.Text = string.Format("{0:N}", Convert.ToDouble(lblSelectedAmt.Text)); f.txtDiscount.Text = string.Format("{0:N}", Convert.ToDouble(0)); f.txtCash.Text = string.Format("{0:N}", Convert.ToDouble(lblSelectedAmt.Text)); f.txtCash.SelectAll(); f.txtCash.Focus(); f.ShowDialog(); if (f.gOkCancel == true) { if (fConfirm.SayMessage("SV") == true) { long tmpKeyHolder = 0; tmpKeyHolder = RoadToSave(); if (tmpKeyHolder == 0) { GlbData.SayMessage("Save Failed!!!", 0, ""); } else { GlbData.SayMessage("Save Success!!!", 1, ""); //if (fConfirm.SayMessage("PR") == true) //{ // print.RoadToPrintReport(getCorrectQuery(), @"C:\POS\Bin\Debug\Rep\SUPReceipt.rpt"); //} ClearLocal(); btnBack.PerformClick(); txtSuppCode.Focus(); } } } }
private void btnSave_Click(object sender, EventArgs e) { if (IsRequired()) { if (fConfirm.SayMessage("SV") == true) { long tmpKeyHolder = 0; gAreaID = Convert.ToInt32(cmbArea.SelectedValue); tmpKeyHolder = SaveOrUpdateSupplier(); if (tmpKeyHolder == 0) { GlbData.SayMessage("Save Failed!!!", 0, ""); } else { GlbData.SayMessage("Save Success!!!", 1, ""); ClearLocal(); txtCode.Clear(); txtCode.Focus(); } } } }
private void btnSave_Click(object sender, EventArgs e) { if (IsRequired()) { if (fConfirm.SayMessage("SV") == true) { long tmpKeyHolder = 0; tmpKeyHolder = SaveOrUpdateCommon(); if (tmpKeyHolder == 0) { GlbData.SayMessage("Save Failed!!!", 0, ""); } else { GlbData.SayMessage("Save Success!!!", 1, ""); txtCode.Clear(); txtName.Clear(); txtCode.Focus(); fillCommon(); } } } }