Json_Ajax Fiş ve Satır Gönderimi

Blog Detay

Json_Ajax Fiş ve Satır Gönderimi

Json_Ajax Fiş ve Satır Gönderimi

<blockquote> <p>&nbsp; &nbsp; $(&quot;#hesapla&quot;).click(function () {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Kayıt Eklendi&quot;);<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var anakayit = {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Id: $(&quot;#stficheid&quot;).text(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tarih: $(&quot;.date_&quot;).html(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ficheno: $(&quot;#txtFisno&quot;).val(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Trcode: $(&quot;#Turu option:selected&quot;).val(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Trcurr: $(&quot;#DovTuru option:selected&quot;).val(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Total: Number($(&quot;tfoot tr td label.bruttoplam&quot;).text()),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TotalVat: Number($(&quot;tfoot tr td label.kdv&quot;).text()),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NetTotal: Number($(&quot;tfoot tr td label.geneltoplam&quot;).text()),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CariHesapId: Number($(&quot;#lblcariid&quot;).text()),</p> <p><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ambtransfer = [];<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&#39;.siparistable tbody tr&#39;).each(function () {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dene = {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Id: $(this).find(&quot;#stlineid&quot;).text(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; searchurun: $(this).find(&#39;td&#39;).eq(0).children().val(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; urunaciklama: $(this).find(&#39;td input#urunaciklama&#39;).val(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Amount: $(this).find(&#39;td input#miktarsiparis&#39;).val(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vat: $(this).find(&#39;td input#kdv&#39;).val(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Price: $(this).find(&#39;td input#miktarbirimfiyat&#39;).val(),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UnitId: Number($(&quot;#txtBirim option&quot;).val())<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //diziye veri ekleme<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ambtransfer.push(dene);<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ambtransfer = JSON.stringify({ &#39;ambtransfer&#39;: ambtransfer, &#39;anakayit&#39;: anakayit });<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.ajax({<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type: &quot;POST&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url: &quot;/Stline/StlficheEkle&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataType: &quot;json&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; contentType: &quot;application/json; charset=utf-8&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //data: { &#39;myArray&#39;: data }, //JSON.stringify(data),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data: ambtransfer,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; success: function (response) {</p> <p><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br /> &nbsp; &nbsp; &nbsp; &nbsp; })</p> </blockquote>

Bunu paylaş
Jquery_Linq Son fiş numarası getirme(db.Max)
Sql Veritabanı Tüm Tablo,Kolon ve İçeriklerde Arama Yapmak
Yazar erydogan
1992 yılı İstanbul doğumluyum. "Beykent Üniversitesi/Bilgisayar Programcılığı" bölümü mezunuyum, 7 yılı aşkın süredir Logo firmasının üretmiş olduğu ERP ürünlerine teknik destek vermek üzere “Logo Erp Danışmanı/Sistem Uzmanı” olarak çalıştım. 2020 Şubat ayında yıllardır hayalini kurduğum "kendi işimi yapma" düşüncemi hayata geçirmek üzere DGN Yazılım firmasını kurdum. Ayrıca .Net C# (MVC) yazılım dilini kullanarak Web tabanlı/Mobil Uyumlu, Logo yazılım entegreli ya da tamamen bağımsız uygulamalar geliştiriyorum.

İlişkili Bloglar:

0 Yorum

Copyrights © 2020 All Rights Reserved by DGN Software.