Ejemplo n.º 1
0
 private void myGridViewBinding1_GridDataTableDisplayValueNeeded(object sender, MyLib.UI.MyGridDataTableDisplayValueNeededArgs e)
 {
     if (e.Key == "creditAmt")
     {
         e.Value = Convert.ToDecimal(e.Value) - Convert.ToDecimal(e.GetValue("debitAmt")) - Convert.ToDecimal(e.GetValue("frzAmt"))
                   + Convert.ToDecimal(e.GetValue("unfrzAmt"));
     }
 }
Ejemplo n.º 2
0
 private void myGridViewBinding2_GridDataTableDisplayValueNeeded(object sender, MyLib.UI.MyGridDataTableDisplayValueNeededArgs e) {
     if (e.Key == "txamount") {
         if (Convert.ToDecimal(e.Value) == 0) {
             e.Value = e.GetValue("intamount");
         }
     } else if (e.Key == "done") {
         e.Value = VIEW2STATUS.FindByValue(Convert.ToString(e.Value));
     }
 }
 private void myGridViewBinding1_GridDataTableDisplayValueNeeded(object sender, MyLib.UI.MyGridDataTableDisplayValueNeededArgs e)
 {
     if (e.Key == "fileType")
     {
         e.Value = ALL_AGREEMENTS.FindByValue(Convert.ToString(e.GetValue("name")).Replace(m_pId.ToString(), "{0}"));
     }
     else if (e.Key == "status")
     {
         e.Value = SIGN_STATUS.FindByValue(Convert.ToString(e.Value));
     }
 }