66 lines
1.6 KiB
C#
66 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using Tanshu.Accounts.Entities;
|
|
using Tanshu.Accounts.Contracts;
|
|
using Tanshu.Accounts.SqlDAO;
|
|
|
|
namespace Tanshu.Accounts.PointOfSale
|
|
{
|
|
public partial class BillSettleForm : Form
|
|
{
|
|
private int settleOption = SettleOptionFactory.Unsettled;
|
|
public BillSettleForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void btnCash_Click(object sender, EventArgs e)
|
|
{
|
|
settleOption = SettleOptionFactory.Cash;
|
|
this.Close();
|
|
}
|
|
|
|
private void btnCreditCard_Click(object sender, EventArgs e)
|
|
{
|
|
settleOption = SettleOptionFactory.CreditCard;
|
|
this.Close();
|
|
}
|
|
|
|
private void btnNC_Click(object sender, EventArgs e)
|
|
{
|
|
settleOption = SettleOptionFactory.NoCharge;
|
|
this.Close();
|
|
}
|
|
|
|
private void btnCancel_Click(object sender, EventArgs e)
|
|
{
|
|
settleOption = SettleOptionFactory.Unsettled;
|
|
this.Close();
|
|
}
|
|
private void btnStaff_Click(object sender, EventArgs e)
|
|
{
|
|
settleOption = SettleOptionFactory.Staff;
|
|
this.Close();
|
|
}
|
|
private void btnBillToCompany_Click(object sender, EventArgs e)
|
|
{
|
|
settleOption = SettleOptionFactory.BillToCompany;
|
|
this.Close();
|
|
}
|
|
public int optionChosen
|
|
{
|
|
get
|
|
{
|
|
return settleOption;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|