Beispiel #1
0
        public void SubmitNewBuyFactor()
        {
            Buy_factor jadid = new Buy_factor();

            jadid.seller_company = Combo_sherkat.SelectedItem.ToString();
            jadid.price          = int.Parse(txt_price.Text);
            jadid.product_name   = Combo_Kala.SelectedItem.ToString();
            jadid.unit           = lbl_unit.Text;
            jadid.description    = txt_description.Text;
            jadid.amount         = int.Parse(txt_amount.Text);
            jadid.sum_buy        = (jadid.price) * (jadid.amount);
            jadid.date           = date_date.SelectedDate;

            db.Buy_factors.InsertOnSubmit(jadid);
            db.SubmitChanges();
        }
Beispiel #2
0
 partial void UpdateBuy_factor(Buy_factor instance);
Beispiel #3
0
 partial void DeleteBuy_factor(Buy_factor instance);
Beispiel #4
0
 partial void InsertBuy_factor(Buy_factor instance);