Beispiel #1
0
    protected void GridView_Bunker_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        try
        {
            int ID = UDFLib.ConvertToInteger(GridView_Bunker.DataKeys[e.RowIndex].Value.ToString());

            int Status         = UDFLib.ConvertToInteger(e.NewValues["StatusID"].ToString());
            int SampleReceived = Convert.ToInt32((bool)e.NewValues["SampleReceived_ByLab"]);

            int RetVal = BLL_OPS_BunkerAnalysis.UPDATE_BunkerAnalysisStatus(ID, Status, SampleReceived, GetSessionUserID());

            GridView_Bunker.EditIndex = -1;
            Load_BunkerSampleAnalysis();
        }
        catch { }
    }
Beispiel #2
0
    protected void GridView_Bunker_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        try
        {
            int ID = UDFLib.ConvertToInteger(GridView_Bunker.DataKeys[e.RowIndex].Value.ToString());

            int Status         = UDFLib.ConvertToInteger(e.NewValues["StatusID"].ToString());
            int SampleReceived = Convert.ToInt32((bool)e.NewValues["SampleReceived_ByLab"]);

            int RetVal = BLL_OPS_BunkerAnalysis.UPDATE_BunkerAnalysisStatus(ID, Status, SampleReceived, GetSessionUserID());

            if (RetVal == 0)
            {
                string js = "alert('Not Updated !!');";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "status", js, true);
            }

            GridView_Bunker.EditIndex = -1;
            Load_BunkerSampleAnalysis();
        }
        catch { }
    }