Exemplo n.º 1
0
 private void simpleButton1_Click(object sender, System.EventArgs e)
 {
     ACMSLogic.StockInventory.SalonUse salonUse = new ACMSLogic.StockInventory.SalonUse();
     salonUse.DeleteSalonUse(this.ReferenceNo, this.terminalUser.Branch.Id, itemCode, Convert.ToInt32(Quantity), this.employee.Id, "Delete Salon Use", this.txtRemarks.Text, 7);
     MessageBox.Show("Record has been deleted", "Delete");
     this.DialogResult = DialogResult.OK;
     this.Close();
 }
Exemplo n.º 2
0
        private void simpleButton1_Click(object sender, System.EventArgs e)
        {
            if (this.textQuantity.Text == "0" | this.textQuantity.Text == "")
            {
                ACMS.Utils.UI.ShowErrorMessage(this, "Please enter valid quantity", "Error");
            }
            else
            {
                ACMSLogic.StockInventory.SalonUse salonUse = new ACMSLogic.StockInventory.SalonUse();
                if (salonUse.SaveSalonUse(DateTime.Now, Convert.ToInt32(this.textQuantity.Text), this.terminalUser.Branch.Id, this.textItemCode.Text, this.employee.Id))
                {
                    MessageBox.Show("Record has been saved", "Save");
                    this.DialogResult = DialogResult.OK;
                }
                else
                {
                    UI.ShowErrorMessage(this, "Cannot insert record", "Error");
                    this.DialogResult = DialogResult.Cancel;
                }

                this.Close();
            }
        }
Exemplo n.º 3
0
 private void simpleButton1_Click(object sender, System.EventArgs e)
 {
     ACMSLogic.StockInventory.SalonUse salonUse = new ACMSLogic.StockInventory.SalonUse();
     salonUse.DeleteSalonUse(this.ReferenceNo,this.terminalUser.Branch.Id,itemCode,Convert.ToInt32(Quantity),this.employee.Id,"Delete Salon Use",this.txtRemarks.Text,7);
     MessageBox.Show("Record has been deleted","Delete");
     this.DialogResult = DialogResult.OK;
     this.Close();
 }
Exemplo n.º 4
0
        private void simpleButton1_Click(object sender, System.EventArgs e)
        {
            if(this.textQuantity.Text=="0" | this.textQuantity.Text=="")
            {
                ACMS.Utils.UI.ShowErrorMessage(this,"Please enter valid quantity","Error");
            }
            else
            {
                ACMSLogic.StockInventory.SalonUse salonUse = new ACMSLogic.StockInventory.SalonUse();
                if(salonUse.SaveSalonUse(DateTime.Now,Convert.ToInt32(this.textQuantity.Text),this.terminalUser.Branch.Id,this.textItemCode.Text,this.employee.Id))
                {
                    MessageBox.Show("Record has been saved","Save");
                    this.DialogResult = DialogResult.OK;
                }
                else
                {
                    UI.ShowErrorMessage(this,"Cannot insert record","Error");
                    this.DialogResult = DialogResult.Cancel;
                }

                this.Close();
            }
        }