Example #1
0
        public void DownloadWordAccountDetails()
        {
            CreateCustomerAccounts2porDbData obj = new CreateCustomerAccounts2porDbData();

            AccountSearch acc = new AccountSearch();

            acc.AccountDATA = obj.AccountSearch(Convert.ToInt32(Session["acc_data"]), Session["acc_mode"].ToString());
            GridView gv = new GridView();

            gv.DataSource = acc.AccountDATA;
            gv.DataBind();
            Response.ClearContent();
            Response.Buffer = true;
            Response.AddHeader("content-disposition", "attachment;filename=accountdetails.doc");
            //Response.ContentType = "application/vnd.ms-word ";
            //Response.Write(gv);
            Response.Charset     = "";
            Response.ContentType = "application/vnd.ms-word ";
            StringWriter   sw = new StringWriter();
            HtmlTextWriter hw = new HtmlTextWriter(sw);

            gv.RenderControl(hw);
            Response.Output.Write(sw.ToString());
            Response.Flush();
            Response.End();
        }
Example #2
0
        public ActionResult AccountsearchExecutive(int data, string mode)
        {
            CreateCustomerAccounts2porDbData obj = new CreateCustomerAccounts2porDbData();

            AccountSearch acc = new AccountSearch();

            acc.AccountDATA = obj.AccountSearch(data, mode);
            return(View(acc));
        }
Example #3
0
        public ActionResult transfer(int id)
        {
            CreateCustomerAccounts2porDbData objDB = new CreateCustomerAccounts2porDbData();
            DataSet         ds = objDB.AccountSearch(id, "ByAccountID");
            transfer_amount PD = new transfer_amount();

            PD.source_account_id = Convert.ToInt32(ds.Tables[0].Rows[0]["AccountID"].ToString());
            return(View(PD));
        }
Example #4
0
        public ActionResult AccountById(int data, string mode)
        {
            CreateCustomerAccounts2porDbData obj = new CreateCustomerAccounts2porDbData();

            AccountSearch acc = new AccountSearch();

            Session["acc_data"] = data;
            Session["acc_mode"] = mode;
            acc.AccountDATA     = obj.AccountSearch(data, mode);
            return(View(acc));
        }
Example #5
0
        public ActionResult Withdraw(int id)
        {
            CreateCustomerAccounts2porDbData objDB = new CreateCustomerAccounts2porDbData();
            DataSet       ds = objDB.AccountSearch(id, "ByAccountID");
            AccountSearch PD = new AccountSearch();

            PD.AccountID     = Convert.ToInt32(ds.Tables[0].Rows[0]["AccountID"].ToString());
            PD.CustomerID    = Convert.ToInt32(ds.Tables[0].Rows[0]["CustomerID"].ToString());
            PD.AccountType   = ds.Tables[0].Rows[0]["AccountType"].ToString();
            PD.BalanceAmount = Convert.ToInt32(ds.Tables[0].Rows[0]["DepositAmount"].ToString());

            return(View("Withdraw", PD));
        }
Example #6
0
        public ActionResult DeleteAccount(int id, int accountID)
        {
            CreateCustomerAccounts2porDbData obj = new CreateCustomerAccounts2porDbData();
            DataSet       ds = obj.AccountSearch(id, "ByCustomerID");
            AccountSearch MB = new AccountSearch();

            //MB.AccountID = Convert.ToInt32(ds.Tables[0].Rows[0]["AccountID"].ToString());
            MB.CustomerID    = Convert.ToInt32(ds.Tables[0].Rows[0]["CustomerID"].ToString());
            MB.AccountType   = ds.Tables[0].Rows[0]["AccountType"].ToString();
            MB.DepositAmount = Convert.ToInt32(ds.Tables[0].Rows[0]["DepositAmount"].ToString());
            MB.AccountID     = accountID;

            return(View(MB));
        }