示例#1
0
 public BillEntity()
 {
     billnumber = null;
     billtype = null;
     billdate = null;
     billamount = null;
     con = new Connection();
     con.open();
 }
示例#2
0
 public ProductEntity(string c, string n, string p, string spec)
 {
     code = c;
     name = n;
     price = p;
     specifications = spec;
     con = new Connection();
     con.open();
 }
示例#3
0
 public ProductEntity()
 {
     code = null;
     name = null;
     price = null;
     specifications = null;
     con = new Connection();
     con.open();
 }
示例#4
0
 public ComponentEntity(string c, string n, string p, string spec, string d, string pid)
 {
     code = c;
     name = n;
     price = p;
     specifications = spec;
     date = d;
     productid = pid;
     con = new Connection();
     con.open();
 }
示例#5
0
 public ComponentEntity()
 {
     code = null;
     name = null;
     price = null;
     date = null;
     specifications = "";
     productid = "";
     con = new Connection();
     con.open();
 }
示例#6
0
 public ClientEntity()
 {
     name = null;
     address = null;
     city = null;
     village =null;
     mobile1 = null;
     mobile2 = null;
     email = null;
     fathername=null;
     date=null;
     con = new Connection();
     con.open();
 }
示例#7
0
 public ClientEntity(string name,string address,string city,string village,string  mobile1,string mobile2,string  email,string fathername,string date)
 {
     this.name = name;
     this.fathername = fathername;
     this.address = address;
     this.city = city;
     this.village = village;
     this.mobile1 = mobile1;
     this.mobile2 = mobile2;
     this.email = email;
     this.date=date;
     con = new Connection();
     con.open();
 }
示例#8
0
 public Sale()
 {
     InitializeComponent();
     lb_grand_total.Text = "0";
     con = new Connection();
     dt = new DataTable();
     LoadProducts();
     dataGridView1.Rows.Clear();
     dataGridView1.Refresh();
     generateBill();
     //Generate New Bill No
     //Initialize Products in Combo Box
     //Get Current Date
     //Set Grand Total 0
     //Make Table uneditable
         //Make Table Row Selection Mode True
 }