Beispiel #1
0
        public ActionResult GetQuantityDataforrd(int id)
        {
            ReqList          li   = new ReqList();
            DataSet          ds   = li.Show_QtyRejectedDataingrid(id);
            List <ProcureVM> list = new List <ProcureVM>();

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                list.Add(new ProcureVM
                {
                    ItemName         = dr["ItemName"].ToString(),
                    RejectedQuantity = Convert.ToInt32(dr["ReturnQuantity"]),
                    ApprovedQuantity = Convert.ToInt32(dr["ApprovedQuantity"])
                });
            }


            return(Json(list, JsonRequestBehavior.AllowGet));
        }