コード例 #1
0
 protected void AddAcc_Click(object sender, EventArgs e)
 {
     try
     {
         CAccount c = new CAccount(AccNametxt.Text, AccNumtxt.Text, OCreditortxt.Text, companyStxt.Text, AccTypetxt.Text, DateOpentxt.Value, AccStatustxt.Text, Pstatustxt.Text, supdatetxt.Value, Balancetxt.Text, BUpdate.Value, creditLimittxt.Text, MonthlyPaymenttxt.Text, PDAmounttxt.Text, HBalancetxt.Text, OBalancetxt.Text, Termstxt.Text, Responsibilitytxt.Text, Statmenttxt.Text, Commentstxt.Text, "Open", "0");
         loan.AddAccount(c);
         l.CAccList.Add(c);
         popAccs();
         AccNametxt.Text        = "";
         OCreditortxt.Text      = "";
         AccTypetxt.Text        = "";
         supdatetxt.Value       = "";
         BUpdate.Value          = "";
         MonthlyPaymenttxt.Text = "";
         HBalancetxt.Text       = "";
         Responsibilitytxt.Text = "";
         AccNumtxt.Text         = "";
         companyStxt.Text       = "";
         DateOpentxt.Value      = "";
         Pstatustxt.Text        = "";
         Balancetxt.Text        = "";
         creditLimittxt.Text    = "";
         PDAmounttxt.Text       = "";
         Termstxt.Text          = "";
         Statmenttxt.Text       = "";
         Commentstxt.Text       = "";
         OBalancetxt.Text       = "";
         AddAcc.Text            = "Add";
     }
     catch (Exception ex)
     {
         error2.Text = ex.Message.Split('@')[0];
     }
 }
コード例 #2
0
 protected void AddAcc_Click(object sender, EventArgs e)
 {
     try
     {
         string su;
         if (supdate.Value == "")
         {
             su = supdateChange.Text;
         }
         else
         {
             su = supdate.Value;
         }
         string dop;
         if (DateOpentxt.Value == "")
         {
             dop = DateOpenChange.Text;
         }
         else
         {
             dop = DateOpentxt.Value;
         }
         string bu;
         if (BUpdate.Value == "")
         {
             bu = BUpdateChange.Text;
         }
         else
         {
             bu = BUpdate.Value;
         }
         CAccount c = new CAccount(AccNametxt.Value, AccNumtxt.Value, OCreditortxt.Value, companyStxt.Value, AccTypetxt.Value, dop, AccStatustxt.Text, Pstatustxt.Value, su, Balancetxt.Value, bu, creditLimittxt.Value, MonthlyPaymenttxt.Value, PDAmounttxt.Value, HBalancetxt.Value, OBalancetxt.Value, Termstxt.Value, Responsibilitytxt.Value, Statmenttxt.Value, Commentstxt.Value, "Open", "0");
         c.Id = loan.getIdDynamicCAcc(l.CAccList);
         loan.AddAccount(c);
         l.CAccList.Add(c);
         popAccs();
         AccNametxt.Value        = "";
         OCreditortxt.Value      = "";
         AccTypetxt.Value        = "";
         supdate.Value           = "";
         BUpdate.Value           = "";
         MonthlyPaymenttxt.Value = "";
         HBalancetxt.Value       = "";
         Responsibilitytxt.Value = "";
         AccNumtxt.Value         = "";
         companyStxt.Value       = "";
         DateOpentxt.Value       = "";
         Pstatustxt.Value        = "";
         Balancetxt.Value        = "";
         creditLimittxt.Value    = "";
         PDAmounttxt.Value       = "";
         Termstxt.Value          = "";
         Statmenttxt.Value       = "";
         Commentstxt.Value       = "";
         OBalancetxt.Value       = "";
         AddAcc.Text             = "Add";
         popAccs();
     }
     catch (Exception ex)
     {
         error2.Text = ex.Message.Split('@')[0];
     }
 }