예제 #1
0
        internal long DeleteEnterpriseBanking(BOEnterpriseBanking model)
        {
            try
            {
                long      result = 0;
                Hashtable ht     = new Hashtable();
                ht.Add("EnterpriseBankID", model.EnterpriseBankID);
                ht.Add("CreatedBy", model.CreatedBy);
                ht.Add("CreatedPC", model.CreatedPC);

                result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_DeleteEnterpriseBanking"));
                return(result);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }
예제 #2
0
        internal long UpdateEnterpriseBanking(BOEnterpriseBanking model)
        {
            try
            {
                long      result = 0;
                Hashtable ht     = new Hashtable();
                ht.Add("EnterpriseBankID", model.EnterpriseBankID);
                ht.Add("EnterpriseID", model.EnterpriseID);
                ht.Add("BankID", model.BankID);
                ht.Add("BranchInfo", model.BranchInfo);
                ht.Add("LoanAmount", model.LoanAmount);
                ht.Add("Remarks", model.Remarks);
                ht.Add("CreatedBy", model.CreatedBy);
                ht.Add("CreatedPC", model.CreatedPC);

                result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_UpdateEnterpriseBanking"));
                return(result);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }