Beispiel #1
0
    protected void onUpdateDelivery_Click(object source, CommandEventArgs e)
    {
        DataTable dt = new DataTable();

        try
        {
            ClearBunker();
            int Bunker_Id = UDFLib.ConvertToInteger(e.CommandArgument);
            ViewState["Bunker_Id"] = Bunker_Id.ToString();
            ltPageHeader.Text      = "Delivery Bunker";
            ViewState["OType"]     = "D";
            dt = oCP.Get_BunkerDetail(Bunker_Id);
            txtPricePerUnit.Text      = dt.DefaultView[0]["Unit_Price"].ToString();
            txtUnit.Text              = dt.DefaultView[0]["Fuel_Amt"].ToString();
            ddlFuelType.SelectedValue = dt.DefaultView[0]["Fuel_Type_Id"].ToString();
            string show = String.Format("showDivAddBunker('dvAddBunker')");
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "showmodal", show, true);
        }
        catch { }
    }
Beispiel #2
0
    protected void onUpdate(object source, CommandEventArgs e)
    {
        DataTable dt = new DataTable();

        try
        {
            Delivery_Bunker_ID     = Convert.ToInt32(e.CommandArgument);
            ViewState["Bunker_Id"] = Delivery_Bunker_ID;
            dt = objCP.Get_BunkerDetail(Delivery_Bunker_ID);

            txtPricePerUnit.Text      = dt.DefaultView[0]["Unit_Price"].ToString();
            txtUnit.Text              = dt.DefaultView[0]["Fuel_Amt"].ToString();
            ddlFuelType.SelectedValue = dt.DefaultView[0]["Fuel_Type_Id"].ToString();
        }
        catch { }
    }