当前位置: 首页>>代码示例>>C#>>正文


C# DAL.executeDataSet方法代码示例

本文整理汇总了C#中DAL.executeDataSet方法的典型用法代码示例。如果您正苦于以下问题:C# DAL.executeDataSet方法的具体用法?C# DAL.executeDataSet怎么用?C# DAL.executeDataSet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DAL的用法示例。


在下文中一共展示了DAL.executeDataSet方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: selectAllMemberTypes

 public DataSet selectAllMemberTypes()
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "SELECT MemberTypeNo, Description FROM MEMBER_TYPE WHERE isArchived=0 and hasLoan=1";
     DataSet ds = dal.executeDataSet(sql);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:7,代码来源:ShareCapitalContributionModel.cs

示例2: SelectAllCapitalContribution

 public DataSet SelectAllCapitalContribution()
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "SELECT MinCapitalContributionId AS 'Minimum Capital Contribution ID', l.MemberTypeNo AS 'Member Type Id', Description AS 'Member Type', MinimumContribution AS 'Share Capital', Duration, l.Status, l.isArchived FROM MINIMUM_CAPITAL_CONTRIBUTION l INNER JOIN MEMBER_TYPE m ON l.MemberTypeNo = m.MemberTypeNo";
     DataSet ds = dal.executeDataSet(sql);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:7,代码来源:ShareCapitalContributionModel.cs

示例3: selectAccountTypes

 public DataSet selectAccountTypes()
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "SELECT AccountTypeId, SavingsTypeName FROM SAVINGS_ACCOUNT_TYPE WHERE AccountTypeId NOT IN(SELECT AccountTypeId FROM MAXIMUM_WITHDRAWAL) AND isMaximumWithdrawal = 1 AND isArchived = 0";
     DataSet ds = dal.executeDataSet(sql);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:7,代码来源:MaximumWithdrawalModel.cs

示例4: selectMembers

 public DataSet selectMembers()
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "Select m.AccountNo as 'Account No.', concat(m.FirstName,' ',m.MiddleName,' ',m.LastName) as 'Name', SUM(h.ShareCapital) AS 'Balance' from Member m inner join MEMBER_TYPE t on m.MemberTypeNo = t.MemberTypeNo full join MEMBER_SHARECAPITAL h on m.AccountNo = h.accountNo where m.Status = 1 and t.hasShareCapital = 1 group by m.AccountNo, m.FirstName, m.LastName, m.MiddleName";
     DataSet ds = dal.executeDataSet(sql);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:7,代码来源:ShareCapitalContributionModel.cs

示例5: selectMaximumWithdrawalAll

 public DataSet selectMaximumWithdrawalAll()
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "SELECT m.AccountTypeId AS 'Account Type Id', SavingsTypeName AS 'Account Type', MaximumWithdrawal AS 'Maximum Withdrawal', m.Status, isArchived, m.DateCreated AS 'Date Created', m.DateModified AS 'Last Modified' FROM MAXIMUM_WITHDRAWAL m INNER JOIN SAVINGS_ACCOUNT_TYPE s ON m.AccountTypeId = s.AccountTypeId";
     DataSet ds = dal.executeDataSet(sql);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:7,代码来源:MaximumWithdrawalModel.cs

示例6: selectMember

 public DataSet selectMember()
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "SELECT AccountNo AS 'Account No', CONCAT(LastName, ', ', FirstName, ' ', MiddleName) AS 'Member Name', Description AS 'Member Type' FROM MEMBER m INNER JOIN MEMBER_TYPE mt ON m.MemberTypeNo = mt.MemberTypeNo WHERE m.Status=1";
     DataSet ds = dal.executeDataSet(sql);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:7,代码来源:UpdateMemberModel.cs

示例7: setData

 public void setData()
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "SELECT CONCAT(FirstName, ' ', MiddleName, ' ', LastName) AS 'Name', CONCAT(AddressNo, ' ', AddressStreet, ', ', AddressBarangay, ', ', AddressCity, ', ', AddressProvince, ', ', AddressZipCode) AS 'Address', BirthDate, TelephoneNo, Gender FROM MEMBER WHERE AccountNo = @AccountNo";
     Dictionary<String, Object> parameters = new Dictionary<string, object>();
     parameters.Add("@AccountNo", this.AccountNo);
     DataSet ds = dal.executeDataSet(sql, parameters);
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:8,代码来源:SignatureCard.cs

示例8: selectActiveMember

 public DataSet selectActiveMember()
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "Select Member.AccountNo as 'Account No.', concat(Member.FirstName,' ',Member.MiddleName,' ',Member.LastName) as 'Account Name', Member_Type.Description AS 'Member Type' from Member, Member_Type where Member.MemberTypeNo=Member_Type.MemberTypeNo and AccountNo not in (Select AccountNo from Termination)";
     String sqlct = "Select COUNT(Member.AccountNo) from Member, Member_Type where Member.MemberTypeNo=Member_Type.MemberTypeNo and AccountNo not in (Select AccountNo from Termination)";
     DataSet ds = dal.executeDataSet(sql);
     checkEmpty = Convert.ToInt32(dal.executeScalar(sqlct));
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:9,代码来源:TerminationModel.cs

示例9: searchMemberByName

 public DataSet searchMemberByName(String Name)
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "Select m.AccountNo as 'Account No.', concat(m.FirstName,' ',m.MiddleName,' ',m.LastName) as 'Name', SUM(h.ShareCapital) AS 'Balance' from Member m inner join MEMBER_TYPE t on m.MemberTypeNo = t.MemberTypeNo full join MEMBER_SHARECAPITAL h on m.AccountNo = h.accountNo  where m.Status = 1 and hasShareCapital = 1 and concat(m.FirstName,' ',m.MiddleName,' ',m.LastName) like(@MemberName) group by m.AccountNo, m.FirstName, m.LastName, m.MiddleName";
     Dictionary<String, Object> parameters = new Dictionary<string, object>();
     Name = "%" + Name + "%";
     parameters.Add("@MemberName", Name);
     DataSet ds = dal.executeDataSet(sql, parameters);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:10,代码来源:ShareCapitalContributionModel.cs

示例10: searchMemberName

 public DataSet searchMemberName(String MemberName)
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "SELECT AccountNo AS 'Account No', CONCAT(LastName, ', ', FirstName, ' ', MiddleName) AS 'Member Name', Description AS 'Member Type' FROM MEMBER m INNER JOIN MEMBER_TYPE mt ON m.MemberTypeNo = mt.MemberTypeNo WHERE m.Status=1 and LastName LIKE(@searchName) OR FirstName LIKE(@searchName) OR MiddleName LIKE(@searchName)";
     Dictionary<String, Object> parameters = new Dictionary<string, object>();
     MemberName = "%" + MemberName + "%";
     parameters.Add("@searchName", MemberName);
     DataSet ds = dal.executeDataSet(sql, parameters);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:10,代码来源:UpdateMemberModel.cs

示例11: searchTimeDepositCertificateNo

 public DataSet searchTimeDepositCertificateNo(String searchName)
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "SELECT m.AccountNo AS 'Account No', CONCAT(LastName, ', ', FirstName, ' ', MiddleName) AS 'Member Name', CertificateNo AS 'Certificate No', DepositAmount AS 'Current Balance', isHold FROM MEMBER m INNER JOIN TIME_DEPOSIT td ON m.AccountNo = td.AccountNo WHERE td.Status = 1 AND CertificateNo LIKE(@searchName)";
     searchName = "%" + searchName + "%";
     Dictionary<String, Object> parameters = new Dictionary<string, object>();
     parameters.Add("@searchName", searchName);
     DataSet ds = dal.executeDataSet(sql, parameters);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:10,代码来源:TimeDepositWithdrawalModel.cs

示例12: searchMemberByName

 public DataSet searchMemberByName(String Name)
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "Select Member.AccountNo as 'Account No.', concat(Member.FirstName,' ',Member.MiddleName,' ',Member.LastName) as 'Account Name', Member_Type.Description AS 'Member Type' from Member, Member_Type where Member.MemberTypeNo=Member_Type.MemberTypeNo and AccountNo not in (Select AccountNo from Termination) and concat(Member.FirstName,' ',Member.MiddleName,' ',Member.LastName) like(@MemberName)";
     Dictionary<String, Object> parameters = new Dictionary<string, object>();
     Name = "%" + Name + "%";
     parameters.Add("@MemberName", Name);
     DataSet ds = dal.executeDataSet(sql, parameters);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:10,代码来源:TerminationModel.cs

示例13: searchMember

 public DataSet searchMember(String searchName)
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
     String sql = "SELECT DISTINCT sa.SavingsAccountNo AS 'Account Holder', SavingsTypeName AS 'Savings Type', sa.AccountTypeId, Balance FROM SAVINGS_ACCOUNT sa INNER JOIN MEMBER_SAVINGS_ACCOUNT msa ON sa.SavingsAccountNo = msa.SavingsAccountNo INNER JOIN SAVINGS_ACCOUNT_TYPE sat ON sa.AccountTypeId = sat.AccountTypeId WHERE sa.SavingsAccountNo LIKE(@searchName)";
     searchName = "%" + searchName + "%";
     Dictionary<String, Object> parameters = new Dictionary<string, object>();
     parameters.Add("@searchName", searchName);
     DataSet ds = dal.executeDataSet(sql, parameters);
     return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:10,代码来源:SavingsTransactionModel.cs

示例14: selectFees

 public DataSet selectFees()
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
      String sql = "SELECT FeeId AS 'Fee No', Description, Amount, Status, isArchived FROM fee WHERE isArchived = 0";
      DataSet ds = dal.executeDataSet(sql);
      return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:7,代码来源:ScheduleOfFeesModel.cs

示例15: selectMemberTypes

 public DataSet selectMemberTypes()
 {
     DAL dal = new DAL(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString);
      String sql = "SELECT MemberTypeNo AS 'Type No', Description AS 'Type Name' FROM Member_Type WHERE isArchived = 0";
      DataSet ds = dal.executeDataSet(sql);
      return ds;
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:7,代码来源:ScheduleOfFeesModel.cs


注:本文中的DAL.executeDataSet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。