using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// از این کلاس برای ثبت اطلاعات فراهم کندگان اقلام و مواد اولیه انبار استفاده می شود
/// </summary>
public class Class_tblProviders
{
    private String Str_PrName = String.Empty;
    private String Str_PrSName = String.Empty;
    private String Str_PrEmail = String.Empty;
    private String Str_PrPhones = String.Empty;
    private String Str_PrFaxes = String.Empty;
    private String Str_PrMobile = String.Empty;
    private String Str_PrPostalAddress = String.Empty;

    public Class_tblProviders(String Str_PrName, String Str_PrSName, String Str_PrEmail, String Str_PrPhones, String Str_PrFaxes, String Str_PrMobile, String Str_PrPostalAddress)
	{
        this.Str_PrName = Str_PrName;
        this.Str_PrSName = Str_PrSName;
        this.Str_PrEmail = Str_PrEmail;
        this.Str_PrPhones = Str_PrPhones;
        this.Str_PrFaxes = Str_PrFaxes;
        this.Str_PrMobile = Str_PrMobile;
        this.Str_PrPostalAddress = Str_PrPostalAddress;
	}

    public void UDF_SaveProvider()
    {
        LSC_WareHouseDataContext db = new LSC_WareHouseDataContext();
        tblProvider tblPr = new tblProvider();
        tblPr.ProviderName = Str_PrName;
        tblPr.ProviderSName = Str_PrSName;
        tblPr.ProviderEmail = Str_PrEmail;
        tblPr.ProviderPhones = Str_PrPhones;
        tblPr.ProviderFaxes = Str_PrFaxes;
        tblPr.ProviderMobiles = Str_PrMobile;
        tblPr.ProviderPostalAddress = Str_PrPostalAddress;
        db.tblProviders.InsertOnSubmit(tblPr);
        db.SubmitChanges();
    }
}
