Esempio n. 1
0
        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();
                    }
                }
            }
        }
Esempio n. 2
0
        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, "");
                    }
                }
            }
        }
Esempio n. 3
0
 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();
         }
     }
 }
Esempio n. 4
0
        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();
                    }
                }
            }
        }
Esempio n. 5
0
        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();
                    }
                }
            }
        }
Esempio n. 6
0
        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();
                    }
                }
            }
        }
Esempio n. 7
0
        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();
                    }
                }
            }
        }
Esempio n. 8
0
        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();
                    }
                }
            }
        }
Esempio n. 9
0
        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();
                    }
                }
            }
        }
Esempio n. 10
0
        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();
                    }
                }
            }
        }