示例#1
0
        public ActionResult Save(int id)
        {
            tblAccountsMasterDTO tblAccountsMasterDTO;

            if (id == 0)
            {
                tblAccountsMasterDTO = new tblAccountsMasterDTO();
            }
            else
            {
                tblAccountsMasterDTO = AccountsMasterBusinessLogic.Get(id);
            }

            return(View(tblAccountsMasterDTO));
        }
 private void setflag()
 {
     if (AccountId > 0)
     {
         var accountdetail = AccountsMasterBusinessLogic.Get(AccountId);
         textaccountname.Text = accountdetail.AccountName;
         textaccountno.Text   = Convert.ToString(accountdetail.AccountNo);
         textaddress.Text     = accountdetail.Addrees;
         textopeningbal.Text  = Convert.ToString(accountdetail.OpeningBalance);
         if (accountdetail.AccountType == "1")
         {
             rbcash.Checked = true;
         }
         else
         {
             rbBank.Checked = true;
         }
         textphoneno.Text     = accountdetail.PhoneNo;
         accountdate.Text     = Convert.ToString(accountdetail.OpeningDate);
         textdescription.Text = Convert.ToString(accountdetail.Description);
     }
 }