Exemple #1
0
    public void InsertSaleDetails()
    {
        Object SaleDetailsInsert = new Object();

        SaleDetailsInsert.Order_Id         = DdlOrderId.SelectedValue;
        SaleDetailsInsert.Transaction_Date = TxtDate.Text;
        SaleDetailsInsert.Year             = TxtYear.Text;
        SaleDetailsInsert.Month            = TxtMonth.Text;
        SaleDetailsInsert.Sale_Price       = int.Parse(TxtSale.Text);
        SaleDetailsInsert.Cost_Price       = int.Parse(TxtCost.Text);
        SaleDetailsInsert.Profit_Loss      = TxtProfit.Text;
        BSLAYER.InsertSaleDetails(SaleDetailsInsert);
        TxtDate.Text   = "";
        TxtMonth.Text  = "";
        TxtSale.Text   = "";
        TxtCost.Text   = "";
        TxtProfit.Text = "";
        TxtYear.Text   = "";
        DdlOrderId.ClearSelection();
    }