<script src="Scripts/jquery-2.1.1.min.js" type="text/javascript"></script> <script src="Scripts/jquery.maskMoney.js" type="text/javascript"></script> <script type='text/javascript'> $(document).ready(function () { $("#TextBoxTROA").maskMoney(); $("#TextBoxInstr").maskMoney(); $("#TextBoxRes").maskMoney(); $("#TextBoxPubS").maskMoney(); $("#TextBoxAcad").maskMoney(); $("#TextBoxStudS").maskMoney(); $("#TextBoxInstiS").maskMoney(); $("#TextBoxOperM").maskMoney(); $("#TextBoxAuxE").maskMoney(); $("#TextBoxHosS").maskMoney(); $("#TextBoxLYIndeO").maskMoney(); $("#TextBoxOED").maskMoney(); $("#TextBoxTA").maskMoney(); $("#TextBoxTL").maskMoney(); $("#TextBoxTUNA").maskMoney(); $("#TextBoxETRNA").maskMoney(); $("#TextBoxNPRNA").maskMoney(); $("#TextBoxTR").maskMoney(); $("#TextBoxTFN").maskMoney(); $("#TextBoxCD").maskMoney(); $("#TextBoxLTD").maskMoney(); $("#TextBoxSFEDA").maskMoney(); }); </script>
protected void TextBoxTA_TextChanged(object sender, EventArgs e) { if (!string.IsNullOrEmpty(TextBoxTA.Text) && !string.IsNullOrEmpty(TextBoxTL.Text)) TextBoxTNA.Text = (Convert.ToInt64(TextBoxTA.Text) - Convert.ToInt64(TextBoxTL.Text)).ToString(); TextBoxTL.Focus(); } protected void TextBoxTUNA_TextChanged(object sender, EventArgs e) { if (!string.IsNullOrEmpty(TextBoxTUNA.Text) && !string.IsNullOrEmpty(TextBoxETRNA.Text) && !string.IsNullOrEmpty(TextBoxNPRNA.Text)) TextBoxTNA2.Text = (Convert.ToInt64(TextBoxTUNA.Text) + Convert.ToInt64(TextBoxETRNA.Text) + Convert.ToInt64(TextBoxNPRNA.Text)).ToString(); TextBoxETRNA.Focus(); } protected void TextBoxETRNA_TextChanged(object sender, EventArgs e) { if (!string.IsNullOrEmpty(TextBoxTUNA.Text) && !string.IsNullOrEmpty(TextBoxETRNA.Text) && !string.IsNullOrEmpty(TextBoxNPRNA.Text)) TextBoxTNA2.Text = (Convert.ToInt64(TextBoxTUNA.Text) + Convert.ToInt64(TextBoxETRNA.Text) + Convert.ToInt64(TextBoxNPRNA.Text)).ToString(); TextBoxNPRNA.Focus(); } protected void TextBoxTL_TextChanged(object sender, EventArgs e) { if (!string.IsNullOrEmpty(TextBoxTA.Text) && !string.IsNullOrEmpty(TextBoxTL.Text)) TextBoxTNA.Text = (Convert.ToInt64(TextBoxTA.Text) - Convert.ToInt64(TextBoxTL.Text)).ToString(); TextBoxTUNA.Focus(); } protected void TextBoxNPRNA_TextChanged(object sender, EventArgs e) { if (!string.IsNullOrEmpty(TextBoxTUNA.Text) && !string.IsNullOrEmpty(TextBoxETRNA.Text) && !string.IsNullOrEmpty(TextBoxNPRNA.Text)) TextBoxTNA2.Text = (Convert.ToInt64(TextBoxTUNA.Text) + Convert.ToInt64(TextBoxETRNA.Text) + Convert.ToInt64(TextBoxNPRNA.Text)).ToString(); TextBoxTR.Focus(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)