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 description for Class_tblDeliverAssetsGe
/// </summary>
public class Class_tblDeliverAssetsGe
{
    private Decimal Dec_CodeGhabz = 0;
    private Decimal Dec_AssetsID = 0;
    private String Str_UserName = String.Empty;
    private float Flt_Quantity = 0;
    private String Str_UseCase = String.Empty;

    public Class_tblDeliverAssetsGe(Decimal Dec_CodeGhabz, Decimal Dec_AssetsID, String Str_UserName, float Flt_Quantity, String Str_UseCase)
	{
        this.Dec_CodeGhabz = Dec_CodeGhabz;
        this.Dec_AssetsID = Dec_AssetsID;
        this.Str_UserName = Str_UserName;
        this.Flt_Quantity = Flt_Quantity;
        this.Str_UseCase = Str_UseCase;
	}

    public void UDF_SaveDelivAssetsGe()
    {
        LSC_WareHouseDataContext db = new LSC_WareHouseDataContext();
        tblDeliverAssetsGe tblDAssetsG = new tblDeliverAssetsGe();
        Class_ShamsiTools shamsi = new Class_ShamsiTools();
        shamsi.UDF_GetCurrentShamsiDate();

        tblDAssetsG.CodeGhabz = Dec_CodeGhabz;
        tblDAssetsG.AssetID = Dec_AssetsID;
        tblDAssetsG.UserName = Str_UserName;
        tblDAssetsG.DeliverDate = shamsi.CurrentShmasiDate;
        tblDAssetsG.Quantity = Flt_Quantity;
        tblDAssetsG.UseCase = Str_UseCase;

        db.tblDeliverAssetsGes.InsertOnSubmit(tblDAssetsG);
        db.SubmitChanges();

    }
}
