Ejemplo n.º 1
0
 public HttpResponseMessage AddICF(HttpRequestMessage request, [FromBody] ICF icf)
 {
     return(Execute(request, () =>
     {
         _ICFService.AddICF(icf);
         return request.CreateResponse(HttpStatusCode.OK);
     }));
 }
Ejemplo n.º 2
0
    public static void AddRow(DataRow dr)
    {
        ICF obj = new ICF();

        obj.Flag            = Convert.ToInt32(dr["Flag"]);
        obj.ClaimID         = dr["ClaimID"].ToString();
        obj.RyotNumber      = dr["RyotNumber"].ToString();
        obj.SeasonCode      = dr["SeasonCode"].ToString();
        obj.PlotNumber      = dr["PlotNumber"].ToString();
        obj.RyotNumber      = dr["RyotNumber"].ToString();
        obj.RyotName        = dr["RyotName"].ToString();
        obj.ClaimDate       = dr["ClaimDate"].ToString();
        obj.ClaimFormNo     = dr["ClaimFormNo"].ToString();
        obj.ClaimArea       = dr["ClaimArea"].ToString();
        obj.ClaimAmount     = dr["ClaimAmount"].ToString();
        obj.ClaimReason     = dr["ClaimReason"].ToString();
        obj.SurveyorID      = dr["SurveyorID"].ToString();
        obj.SurveyorDate    = dr["SurveyorDate"].ToString();
        obj.InsuranceAmount = dr["InsuranceAmount"].ToString();
        icfList.Add(obj);
    }
Ejemplo n.º 3
0
 public void EditICF(ICF icf)
 {
     _repository.Edit(icf);
     _uow.Commit();
 }
Ejemplo n.º 4
0
 public void AddICF(ICF icf)
 {
     _repository.Add(icf);
     _uow.Commit();
 }