Ejemplo n.º 1
0
 //protected void tblClaimUnitList_OnRowUpdating(object sender, GridViewUpdateEventArgs e)
 //{
 //    int id = Convert.ToInt32(e.OldValues["id_claim_unit"]);
 //    ClaimUnit claimUnit = new ClaimUnit(id);
 //    claimUnit.PriceIn = Convert.ToDecimal(e.OldValues["price_in"]);
 //    claimUnit.PriceOut = Convert.ToDecimal(e.OldValues["price_out"]);
 //}
 //protected void btnSetRequestNum_Click(object sender, EventArgs e)
 //{
 //    try
 //    {
 //        //int id = Convert.ToInt32((sender as LinkButton).CommandArgument);
 //        Claim claim = new Claim(Id);
 //        claim.IdCreator = User.Id;
 //        claim.SetRequestNumState();
 //        //RedirectWithParams();
 //        Response.Redirect(ListUrl);
 //    }
 //    catch (Exception ex)
 //    {
 //        ServerMessageDisplay(new[] { phServerMessage }, ex.Message, true);
 //    }
 //}
 protected void btnRequestPrice_Click(object sender, EventArgs e)
 {
     try
     {
         //int id = Convert.ToInt32((sender as LinkButton).CommandArgument);
         Claim claim = new Claim(Id);
         claim.IdCreator = User.Id;
         claim.SetRequestPriceState();
         //RedirectWithParams();
         Response.Redirect(ListUrl);
     }
     catch (Exception ex)
     {
         ServerMessageDisplay(new[] { phServerMessage }, ex.Message, true);
     }
 }